Reimplemented from System.Data.Common.DataStorage.
Definition at line 19 of file SqlDecimalStorage.cs.
20 {
21 bool flag = false;
22 try
23 {
24 switch (kind)
25 {
27 {
30 {
32 {
34 flag = true;
35 }
36 }
37 if (flag)
38 {
40 }
42 }
44 {
48 {
50 {
53 flag = true;
54 }
55 }
56 if (flag)
57 {
61 }
63 }
66 {
67 int num = 0;
73 {
75 {
78 num++;
79 }
80 }
81 if (num > 1)
82 {
86 {
88 }
89 else
90 {
92 }
94 {
96 }
98 }
100 }
102 {
105 {
107 {
109 {
111 }
112 flag = true;
113 }
114 }
115 if (flag)
116 {
118 }
120 }
122 {
125 {
127 {
129 {
131 }
132 flag = true;
133 }
134 }
135 if (flag)
136 {
138 }
140 }
143 {
145 }
146 return null;
148 {
149 int num = 0;
151 {
153 {
154 num++;
155 }
156 }
157 return num;
158 }
159 }
160 }
161 catch (OverflowException)
162 {
164 }
165 throw ExceptionBuilder.AggregateException(kind,
_dataType);
166 }
readonly object _nullValue
static SqlBoolean GreaterThan(SqlDecimal x, SqlDecimal y)
static SqlBoolean LessThan(SqlDecimal x, SqlDecimal y)
static readonly SqlDecimal MinValue
static readonly SqlDecimal MaxValue
References System.Data.Common.DataStorage._dataType, System.Data.Common.DataStorage._nullValue, System.Data.Common.SqlDecimalStorage._values, System.Data.ExceptionBuilder.AggregateException(), System.Xml.Dictionary, System.E, System.Data.SqlTypes.SqlDecimal.GreaterThan(), System.Data.IsNull, System.L, System.Data.SqlTypes.SqlDecimal.LessThan(), System.Data.SqlTypes.SqlDecimal.MaxValue, System.Data.SqlTypes.SqlDecimal.MinValue, System.Data.ExprException.Overflow(), System.Data.Common.SqlDouble, System.Math.Sqrt(), and System.Data.SqlTypes.SqlDecimal.ToSqlDouble().