Added piles of new enumerations from Sergey.
[mono.git] / mcs / class / corlib / System / TypeCode.cs
1 // TypeCode.cs\r
2 //\r
3 // This code was automatically generated from\r
4 // ECMA CLI XML Library Specification.\r
5 // Generator: libgen.xsl\r
6 // Source file: all.xml\r
7 // URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml\r
8 //\r
9 // (C) 2001 Ximian, Inc.  http://www.ximian.com\r
10 \r
11 \r
12 namespace System {\r
13 \r
14 \r
15         /// <summary>\r
16         /// <para>Specifies the type code of an object.</para>\r
17         /// </summary>\r
18         /// <remarks>\r
19         /// <para>To obtain the type code for a given object, use the \r
20         ///                   object's GetTypeCode method. The TypeCode.Empty field represents a\r
21         ///                   null object reference and the TypeCode.Object field represents an object that\r
22         ///                   doesn't implement the IValue interface. TheTypeCode.DBNull field represents a\r
23         ///                   null database, which is distinct from a null reference. </para>\r
24         /// <para>There are no type codes for "Missing", "Error", "IDispatch", and "IUnknown". \r
25         ///                   These types of values are instead represented as classes. When the type code of\r
26         ///                   an object is TypeCode.Object, a call to <see cref="M:System.Type.IsInstanceOfType(System.Object)" /> can be used to determine if\r
27         ///                   the object is an instance of the Type.</para>\r
28         /// <para>Note that when an object has a given type code, there is no guarantee that \r
29         ///                   the object is an instance of the corresponding value type. For example, an\r
30         ///                   object with the type code TypeCode.Int32 might actually be an instance of a\r
31         ///                   nullable 32-bit integer type.</para>\r
32         /// </remarks>\r
33         public enum TypeCode {\r
34 \r
35                 /// <summary>\r
36                 ///                A null reference.\r
37                 ///             </summary>\r
38                 Empty = 0,\r
39 \r
40                 /// <summary>\r
41                 /// <para> An instance that isn't a value.</para>\r
42                 /// </summary>\r
43                 Object = 1,\r
44 \r
45                 /// <summary>\r
46                 /// <para>A null database.</para>\r
47                 /// </summary>\r
48                 DBNull = 2,\r
49 \r
50                 /// <summary>\r
51                 /// <para>A simple type representing boolean values of true\r
52                 ///                   or false.</para>\r
53                 /// </summary>\r
54                 Boolean = 3,\r
55 \r
56                 /// <summary>\r
57                 /// <para>An integral type representing unsigned 16-bit integers \r
58                 ///                   with values between 0 and 65535. The set of possible values for the <see cref="F:System.TypeCode.Char" />\r
59                 ///                   type corresponds to the Unicode character set.</para>\r
60                 /// </summary>\r
61                 Char = 4,\r
62 \r
63                 /// <summary>\r
64                 ///                An integral type representing signed 8-bit\r
65                 ///                integers with values between -128 and 127.\r
66                 ///             </summary>\r
67                 SByte = 5,\r
68 \r
69                 /// <summary>\r
70                 ///                An integral type representing unsigned\r
71                 ///                8-bit integers with values between 0 and 255.\r
72                 ///             </summary>\r
73                 Byte = 6,\r
74 \r
75                 /// <summary>\r
76                 ///                An integral type representing signed 16-bit\r
77                 ///                integers with values between -32768 and 32767.\r
78                 ///             </summary>\r
79                 Int16 = 7,\r
80 \r
81                 /// <summary>\r
82                 ///                An integral type representing unsigned\r
83                 ///                16-bit integers with values between 0 and 65535.\r
84                 ///             </summary>\r
85                 UInt16 = 8,\r
86 \r
87                 /// <summary>\r
88                 ///                An integral type representing signed 32-bit\r
89                 ///                integers with values between -2147483648 and 2147483647.\r
90                 ///             </summary>\r
91                 Int32 = 9,\r
92 \r
93                 /// <summary>\r
94                 ///                An integral type representing unsigned\r
95                 ///                32-bit integers with values between 0 and 4294967295.\r
96                 ///             </summary>\r
97                 UInt32 = 10,\r
98 \r
99                 /// <summary>\r
100                 /// <para>An integral type representing signed 64-bit integers \r
101                 ///                   with values\r
102                 ///                   between -9223372036854775808 and 9223372036854775807.</para>\r
103                 /// </summary>\r
104                 Int64 = 11,\r
105 \r
106                 /// <summary>\r
107                 ///                An integral type representing unsigned\r
108                 ///                64-bit integers with values between 0 and 18446744073709551615.\r
109                 ///             </summary>\r
110                 UInt64 = 12,\r
111 \r
112                 /// <summary>\r
113                 /// <para>A floating point type representing values ranging from \r
114                 ///                   approximately 1.5 x 10<superscript term="-45" /> to 3.4 x 10<superscript term="38" />\r
115                 ///                   with a precision of 7\r
116                 ///                   digits.</para>\r
117                 /// </summary>\r
118                 Single = 13,\r
119 \r
120                 /// <summary>\r
121                 /// <para>A floating point type representing values ranging from \r
122                 ///                   approximately 5.0 x 10<superscript term="-324" /> to 1.7 x 10<superscript term="308" />\r
123                 ///                   with a precision of\r
124                 ///                   15-16 digits.</para>\r
125                 /// </summary>\r
126                 Double = 14,\r
127 \r
128                 /// <summary>\r
129                 /// <para>A simple type representing values ranging from 1.0 x \r
130                 ///                   10<superscript term="-28" /> to approximately 7.9 x 10<superscript term="28" />\r
131                 ///                   with 28-29 significant digits.</para>\r
132                 /// </summary>\r
133                 Decimal = 15,\r
134 \r
135                 /// <summary>\r
136                 /// <para>A type representing a date and time value.</para>\r
137                 /// </summary>\r
138                 DateTime = 16,\r
139 \r
140                 /// <summary>\r
141                 ///                A sealed class type representing Unicode\r
142                 ///                character strings.\r
143                 ///             </summary>\r
144                 String = 18,\r
145         } // TypeCode\r
146 \r
147 } // System\r