Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created August 13, 2013 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/6220379 to your computer and use it in GitHub Desktop.
Save Fhernd/6220379 to your computer and use it in GitHub Desktop.
Uso de los operadores condicionales de corto circuito en C#.
class OperadoresCondicionalesCortoCircuito
{
public static bool UsarParaguas(bool lluvioso, bool soleado, bool ventoso)
{
return !ventoso && (lluvioso || soleado);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment