Searching for: Optionals in C#
Switch Case
Language: C#

A switch case is used test variable equality for a list of values, where each value is a case. When the variable is equal to one of the cases, the statements following the case are executed. A break statement ends the switch case. The optional default case is for when the variable does not equal any of the cases.

String Compare
Language: C#

Used to check equality of two strings.

Language: C#

Lists are like arrays, but more flexible. They are mutable and can be dynamically sized.

Standard Methods
Language: C#

A method is a block of code that can be called from another location in the program or class. It is used to reduce the repetition of multiple lines of code. The return statement concludes the execution of the block of code, returning something of type provided in the method header, or null (void method). Within a class, these are known as 'instance methods'. An instance method is tied to a class instance.

  Next Page >