Programming-Idioms

History of Idiom 162 > diff from v12 to v13

Edit summary for version 13 :
New Csharp implementation by user [bigwavedave]

Version 12

2019-09-28, 10:07:04

Version 13

2019-10-08, 21:30:03

Idiom #162 Execute procedures depending on options

execute bat if b is a program option and fox if f is a program option.

Idiom #162 Execute procedures depending on options

execute bat if b is a program option and fox if f is a program option.

Code
void Main(string[] args)
{
  if (args.Contains("b")) bat();
  else if (args.Contains("f")) fox();
}