In this chapter you’ll:
Use arrays to store data in and retrieve data from lists and tables of values.
Declare arrays, initialize arrays and refer to individual elements of arrays.
Iterate through arrays with the foreach
statement.
Use var
to declare implicitly typed local variables and let the compiler infer their types from their initializer values.
Use exception handling to process runtime problems.
Declare C# 6 getter-only auto-implemented properties.
Initialize auto-implemented properties with C# 6 auto-property initializers.
Pass arrays to methods.
Declare and manipulate multidimensional arrays—both rectangular and jagged.
Write methods that use variable-length argument lists.
Read command-line arguments into an app.