Chapter 10 Quick Reference
... 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
Ngày tải lên: 28/10/2013, 20:15
Chapter 6 Quick Reference
... Chapter 6 Quick Reference To Do this Throw an exception Use a throw statement. For example: throw new FormatException(source);
Ngày tải lên: 20/10/2013, 15:15
Chapter 7 Quick Reference
... Chapter 7 Quick Reference To Do this Declare a class Write the keyword class, followed by the name of the
Ngày tải lên: 20/10/2013, 15:15
Chapter 8 Quick Reference
... 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...
Ngày tải lên: 24/10/2013, 13:15
Chapter 9 Quick Reference
... Chapter 9 Quick Reference To Do this Declare an enumeration type Write the keyword enum, followed by the
Ngày tải lên: 24/10/2013, 13:15
Chapter 12 Quick Reference
... Chapter 12 Quick Reference To Do this Create a derived class from a base class Declare the new class name
Ngày tải lên: 28/10/2013, 20:15
Chapter 13 Quick Reference
... Chapter 13 Quick Reference To Do this Write a destructor Write a method whose name is the same as the
Ngày tải lên: 07/11/2013, 17:15
Chapter 14 Quick Reference
... Chapter 14 Quick Reference To Do this Declare a read/write property for a struct or class. Declare
Ngày tải lên: 07/11/2013, 17:15
Chapter 16 Quick Reference
... Chapter 16 Quick Reference To Do this Declare a delegate type. Write the keyword delegate, followed
Ngày tải lên: 07/11/2013, 17:15