On its simplest level, the System namespace provides support for the fundamental data types of the language. In C#, all the primitive types, such as int, double, bool, and string, are aliases for types provided within the System namespace. These aliases are listed in Table 1.3 in Section 1.18.2.
The methods associated with these types can be invoked through objects of the aliased C# types. For example, to discover the range of values supported by one of the numeric types, we can access the MaxValue and MinValue properties:
int imaxval = int.MaxValue; int iminval = int.MinValue;
One useful member function of each numeric type is Parse(). For example, given the string object
string bonus = "$ 12,000.79"; ...