... Chapter 10 Quick Reference To Do this Declare an array variable Write the name of the element type, followed ... followed by the size of the array between square brackets. For example: bool[] flags = new bool [10] ; Initialize the elements of an array instance to specific values Write the specific values in
... Chapter 8 Quick Reference To Do this Copy a value type variable Simply make the copy. Because the variable ... example: int i = 42; int copyi = i; Copy a reference type variable Simply make the copy. Because the variable is a reference type, you will have two references to the same object. For example: ... variable of type object to the value. For example: object o = 42; Unbox a val...