系列2:C#变量的默认值

The member variables of class types are automatically set to an appropriate default value. This
value will differ based on the exact data type; however, the rules are simple:
• bool types are set to false.
• Numeric data is set to 0 (or 0.0 in the case of floating-point data types).
• string types are set to null.
• char types are set to '\0'.
• Reference types are set to null.

Code
原文地址:https://www.cnblogs.com/engine1984/p/1441333.html