... 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...
... Chapter 9 Quick Reference To Do this Declare an enumeration type Write the keyword enum, followed by the ... value created by calling a structure constructor. For example: Time lunch = new Time (12, 30, 0); lunch = new Time (12, 30, 0);