2561 references to TypeCode
mscorlib (336)
system\boolean.cs (2)
230
public
TypeCode
GetTypeCode() {
231
return
TypeCode
.Boolean;
system\byte.cs (2)
183
public
TypeCode
GetTypeCode() {
184
return
TypeCode
.Byte;
system\char.cs (2)
428
public
TypeCode
GetTypeCode() {
429
return
TypeCode
.Char;
system\Collections\Concurrent\ConcurrentDictionary.cs (12)
152
case
TypeCode
.Boolean:
153
case
TypeCode
.Byte:
154
case
TypeCode
.Char:
155
case
TypeCode
.Int16:
156
case
TypeCode
.Int32:
157
case
TypeCode
.SByte:
158
case
TypeCode
.Single:
159
case
TypeCode
.UInt16:
160
case
TypeCode
.UInt32:
162
case
TypeCode
.Int64:
163
case
TypeCode
.Double:
164
case
TypeCode
.UInt64:
system\collections\generic\equalitycomparer.cs (10)
62
TypeCode
underlyingTypeCode = Type.GetTypeCode(Enum.GetUnderlyingType(t));
68
case
TypeCode
.Int16: // short
70
case
TypeCode
.SByte:
72
case
TypeCode
.Int32:
73
case
TypeCode
.UInt32:
74
case
TypeCode
.Byte:
75
case
TypeCode
.UInt16: //ushort
77
case
TypeCode
.Int64:
78
case
TypeCode
.UInt64:
407
if (Type.GetTypeCode(Enum.GetUnderlyingType(typeof(T))) !=
TypeCode
.Int32) {
system\convert.cs (61)
171
public static
TypeCode
GetTypeCode(object value) {
172
if (value == null) return
TypeCode
.Empty;
178
return
TypeCode
.Object;
187
return convertible != null? convertible.GetTypeCode() ==
TypeCode
.DBNull: false;
202
public static Object ChangeType(Object value,
TypeCode
typeCode) {
206
public static Object ChangeType(Object value,
TypeCode
typeCode, IFormatProvider provider) {
207
if (value == null && (typeCode ==
TypeCode
.Empty || typeCode ==
TypeCode
.String || typeCode ==
TypeCode
.Object)) {
220
case
TypeCode
.Boolean:
222
case
TypeCode
.Char:
224
case
TypeCode
.SByte:
226
case
TypeCode
.Byte:
228
case
TypeCode
.Int16:
230
case
TypeCode
.UInt16:
232
case
TypeCode
.Int32:
234
case
TypeCode
.UInt32:
236
case
TypeCode
.Int64:
238
case
TypeCode
.UInt64:
240
case
TypeCode
.Single:
242
case
TypeCode
.Double:
244
case
TypeCode
.Decimal:
246
case
TypeCode
.DateTime:
248
case
TypeCode
.String:
250
case
TypeCode
.Object:
252
case
TypeCode
.DBNull:
254
case
TypeCode
.Empty:
277
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Boolean])
279
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Char])
281
if (rtTargetType == ConvertTypes[(int)
TypeCode
.SByte])
283
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Byte])
285
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Int16])
287
if (rtTargetType == ConvertTypes[(int)
TypeCode
.UInt16])
289
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Int32])
291
if (rtTargetType == ConvertTypes[(int)
TypeCode
.UInt32])
293
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Int64])
295
if (rtTargetType == ConvertTypes[(int)
TypeCode
.UInt64])
297
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Single])
299
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Double])
301
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Decimal])
303
if (rtTargetType == ConvertTypes[(int)
TypeCode
.DateTime])
305
if (rtTargetType == ConvertTypes[(int)
TypeCode
.String])
307
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Object])
312
if (rtTargetType == ConvertTypes[(int)
TypeCode
.DBNull])
314
if (rtTargetType == ConvertTypes[(int)
TypeCode
.Empty])
348
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Boolean])
350
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Char])
352
if (rtConversionType==ConvertTypes[(int)
TypeCode
.SByte])
354
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Byte])
356
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Int16])
358
if (rtConversionType==ConvertTypes[(int)
TypeCode
.UInt16])
360
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Int32])
362
if (rtConversionType==ConvertTypes[(int)
TypeCode
.UInt32])
364
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Int64])
366
if (rtConversionType==ConvertTypes[(int)
TypeCode
.UInt64])
368
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Single])
370
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Double])
372
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Decimal])
374
if (rtConversionType==ConvertTypes[(int)
TypeCode
.DateTime])
376
if (rtConversionType==ConvertTypes[(int)
TypeCode
.String])
378
if (rtConversionType==ConvertTypes[(int)
TypeCode
.Object])
system\datetime.cs (2)
1573
public
TypeCode
GetTypeCode() {
1574
return
TypeCode
.DateTime;
system\dbnull.cs (2)
43
public
TypeCode
GetTypeCode() {
44
return
TypeCode
.DBNull;
system\decimal.cs (2)
1196
public
TypeCode
GetTypeCode() {
1197
return
TypeCode
.Decimal;
system\diagnostics\eventing\eventsource.cs (14)
6734
case
TypeCode
.Boolean:
6736
case
TypeCode
.Byte:
6738
case
TypeCode
.Char:
6739
case
TypeCode
.UInt16:
6741
case
TypeCode
.UInt32:
6743
case
TypeCode
.UInt64:
6745
case
TypeCode
.SByte:
6747
case
TypeCode
.Int16:
6749
case
TypeCode
.Int32:
6751
case
TypeCode
.Int64:
6753
case
TypeCode
.String:
6755
case
TypeCode
.Single:
6757
case
TypeCode
.Double:
6759
case
TypeCode
.DateTime:
system\diagnostics\eventing\StubEnvironment.cs (1)
208
public static
TypeCode
GetTypeCode(this Type type) { return Type.GetTypeCode(type); }
system\double.cs (2)
298
public
TypeCode
GetTypeCode() {
299
return
TypeCode
.Double;
system\enum.cs (46)
52
TypeCode
typeCode = Convert.GetTypeCode(value);
56
case
TypeCode
.SByte :
63
case
TypeCode
.Byte :
70
case
TypeCode
.Boolean:
78
case
TypeCode
.Int16:
85
case
TypeCode
.UInt16 :
92
case
TypeCode
.Char:
99
case
TypeCode
.UInt32:
106
case
TypeCode
.Int32 :
113
case
TypeCode
.UInt64 :
120
case
TypeCode
.Int64 :
213
TypeCode
typeCode = Convert.GetTypeCode(value);
218
case
TypeCode
.SByte:
219
case
TypeCode
.Int16:
220
case
TypeCode
.Int32:
221
case
TypeCode
.Int64:
225
case
TypeCode
.Byte:
226
case
TypeCode
.UInt16:
227
case
TypeCode
.UInt32:
228
case
TypeCode
.UInt64:
229
case
TypeCode
.Boolean:
230
case
TypeCode
.Char:
546
TypeCode
typeCode = Convert.GetTypeCode(value);
550
((typeCode ==
TypeCode
.Boolean) || (typeCode ==
TypeCode
.Char)))
558
case
TypeCode
.Int32 :
561
case
TypeCode
.SByte :
564
case
TypeCode
.Int16 :
567
case
TypeCode
.Int64 :
570
case
TypeCode
.UInt32 :
573
case
TypeCode
.Byte :
576
case
TypeCode
.UInt16 :
579
case
TypeCode
.UInt64 :
582
case
TypeCode
.Char:
585
case
TypeCode
.Boolean:
892
public
TypeCode
GetTypeCode()
899
return
TypeCode
.Int32;
904
return
TypeCode
.SByte;
909
return
TypeCode
.Int16;
914
return
TypeCode
.Int64;
919
return
TypeCode
.UInt32;
924
return
TypeCode
.Byte;
929
return
TypeCode
.UInt16;
934
return
TypeCode
.UInt64;
939
return
TypeCode
.Boolean;
944
return
TypeCode
.Char;
system\iconvertible.cs (1)
43
TypeCode
GetTypeCode();
system\int16.cs (2)
196
public
TypeCode
GetTypeCode() {
197
return
TypeCode
.Int16;
system\int32.cs (2)
170
public
TypeCode
GetTypeCode() {
171
return
TypeCode
.Int32;
system\int64.cs (2)
149
public
TypeCode
GetTypeCode() {
150
return
TypeCode
.Int64;
system\reflection\emit\customattributebuilder.cs (42)
81
case
TypeCode
.SByte:
82
case
TypeCode
.Byte:
83
case
TypeCode
.Int16:
84
case
TypeCode
.UInt16:
85
case
TypeCode
.Int32:
86
case
TypeCode
.UInt32:
87
case
TypeCode
.Int64:
88
case
TypeCode
.UInt64:
157
TypeCode
paramTC = Type.GetTypeCode(paramTypes[i]);
159
if (paramTC !=
TypeCode
.Object || !ValidateType(constructorArgs[i].GetType()))
295
case
TypeCode
.SByte:
298
case
TypeCode
.Byte:
301
case
TypeCode
.Char:
304
case
TypeCode
.Boolean:
307
case
TypeCode
.Int16:
310
case
TypeCode
.UInt16:
313
case
TypeCode
.Int32:
316
case
TypeCode
.UInt32:
319
case
TypeCode
.Int64:
322
case
TypeCode
.UInt64:
325
case
TypeCode
.Single:
328
case
TypeCode
.Double:
391
case
TypeCode
.SByte:
394
case
TypeCode
.Byte:
397
case
TypeCode
.Int16:
400
case
TypeCode
.UInt16:
403
case
TypeCode
.Int32:
406
case
TypeCode
.UInt32:
409
case
TypeCode
.Int64:
412
case
TypeCode
.UInt64:
457
case
TypeCode
.SByte:
460
case
TypeCode
.Byte:
463
case
TypeCode
.Char:
466
case
TypeCode
.Boolean:
469
case
TypeCode
.Int16:
472
case
TypeCode
.UInt16:
475
case
TypeCode
.Int32:
478
case
TypeCode
.UInt32:
481
case
TypeCode
.Int64:
484
case
TypeCode
.UInt64:
487
case
TypeCode
.Single:
490
case
TypeCode
.Double:
system\rttype.cs (29)
1571
private
TypeCode
m_typeCode;
1598
m_typeCode =
TypeCode
.Empty;
1725
internal
TypeCode
TypeCode
3589
protected override
TypeCode
GetTypeCodeImpl()
3591
TypeCode
typeCode = Cache.TypeCode;
3593
if (typeCode !=
TypeCode
.Empty)
3600
typeCode =
TypeCode
.Boolean; break;
3602
typeCode =
TypeCode
.Char; break;
3604
typeCode =
TypeCode
.SByte; break;
3606
typeCode =
TypeCode
.Byte; break;
3608
typeCode =
TypeCode
.Int16; break;
3610
typeCode =
TypeCode
.UInt16; break;
3612
typeCode =
TypeCode
.Int32; break;
3614
typeCode =
TypeCode
.UInt32; break;
3616
typeCode =
TypeCode
.Int64; break;
3618
typeCode =
TypeCode
.UInt64; break;
3620
typeCode =
TypeCode
.Single; break;
3622
typeCode =
TypeCode
.Double; break;
3624
typeCode =
TypeCode
.String; break;
3626
if (this == Convert.ConvertTypes[(int)
TypeCode
.Decimal])
3627
typeCode =
TypeCode
.Decimal;
3628
else if (this == Convert.ConvertTypes[(int)
TypeCode
.DateTime])
3629
typeCode =
TypeCode
.DateTime;
3633
typeCode =
TypeCode
.Object;
3636
if (this == Convert.ConvertTypes[(int)
TypeCode
.DBNull])
3637
typeCode =
TypeCode
.DBNull;
3638
else if (this == Convert.ConvertTypes[(int)
TypeCode
.String])
3639
typeCode =
TypeCode
.String;
3641
typeCode =
TypeCode
.Object;
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (12)
202
case
TypeCode
.Boolean:
203
case
TypeCode
.Char:
204
case
TypeCode
.Byte:
205
case
TypeCode
.SByte:
206
case
TypeCode
.Int16:
207
case
TypeCode
.UInt16:
208
case
TypeCode
.Int32:
209
case
TypeCode
.UInt32:
213
case
TypeCode
.Int64:
214
case
TypeCode
.UInt64:
219
case
TypeCode
.Single:
223
case
TypeCode
.Double:
system\runtime\serialization\formatterconverter.cs (1)
36
public Object Convert(Object value,
TypeCode
typeCode) {
system\runtime\serialization\formatters\binary\binaryconverter.cs (39)
404
private static volatile
TypeCode
[] typeCodeA;
408
TypeCode
[] typeCodeATemp = new
TypeCode
[primitiveTypeEnumLength];
409
typeCodeATemp[(int)InternalPrimitiveTypeE.Invalid] =
TypeCode
.Object;
410
typeCodeATemp[(int)InternalPrimitiveTypeE.Boolean] =
TypeCode
.Boolean;
411
typeCodeATemp[(int)InternalPrimitiveTypeE.Byte] =
TypeCode
.Byte;
412
typeCodeATemp[(int)InternalPrimitiveTypeE.Char] =
TypeCode
.Char;
413
typeCodeATemp[(int)InternalPrimitiveTypeE.Decimal] =
TypeCode
.Decimal;
414
typeCodeATemp[(int)InternalPrimitiveTypeE.Double] =
TypeCode
.Double;
415
typeCodeATemp[(int)InternalPrimitiveTypeE.Int16] =
TypeCode
.Int16;
416
typeCodeATemp[(int)InternalPrimitiveTypeE.Int32] =
TypeCode
.Int32;
417
typeCodeATemp[(int)InternalPrimitiveTypeE.Int64] =
TypeCode
.Int64;
418
typeCodeATemp[(int)InternalPrimitiveTypeE.SByte] =
TypeCode
.SByte;
419
typeCodeATemp[(int)InternalPrimitiveTypeE.Single] =
TypeCode
.Single;
420
typeCodeATemp[(int)InternalPrimitiveTypeE.TimeSpan] =
TypeCode
.Object;
421
typeCodeATemp[(int)InternalPrimitiveTypeE.DateTime] =
TypeCode
.DateTime;
422
typeCodeATemp[(int)InternalPrimitiveTypeE.UInt16] =
TypeCode
.UInt16;
423
typeCodeATemp[(int)InternalPrimitiveTypeE.UInt32] =
TypeCode
.UInt32;
424
typeCodeATemp[(int)InternalPrimitiveTypeE.UInt64] =
TypeCode
.UInt64;
429
internal static
TypeCode
ToTypeCode(InternalPrimitiveTypeE code)
442
codeATemp[(int)
TypeCode
.Empty] = InternalPrimitiveTypeE.Invalid;
443
codeATemp[(int)
TypeCode
.Object] = InternalPrimitiveTypeE.Invalid;
445
codeATemp[(int)
TypeCode
.DBNull] = InternalPrimitiveTypeE.Invalid;
447
codeATemp[(int)
TypeCode
.Boolean] = InternalPrimitiveTypeE.Boolean;
448
codeATemp[(int)
TypeCode
.Char] = InternalPrimitiveTypeE.Char;
449
codeATemp[(int)
TypeCode
.SByte] = InternalPrimitiveTypeE.SByte;
450
codeATemp[(int)
TypeCode
.Byte] = InternalPrimitiveTypeE.Byte;
451
codeATemp[(int)
TypeCode
.Int16] = InternalPrimitiveTypeE.Int16;
452
codeATemp[(int)
TypeCode
.UInt16] = InternalPrimitiveTypeE.UInt16;
453
codeATemp[(int)
TypeCode
.Int32] = InternalPrimitiveTypeE.Int32;
454
codeATemp[(int)
TypeCode
.UInt32] = InternalPrimitiveTypeE.UInt32;
455
codeATemp[(int)
TypeCode
.Int64] = InternalPrimitiveTypeE.Int64;
456
codeATemp[(int)
TypeCode
.UInt64] = InternalPrimitiveTypeE.UInt64;
457
codeATemp[(int)
TypeCode
.Single] = InternalPrimitiveTypeE.Single;
458
codeATemp[(int)
TypeCode
.Double] = InternalPrimitiveTypeE.Double;
459
codeATemp[(int)
TypeCode
.Decimal] = InternalPrimitiveTypeE.Decimal;
460
codeATemp[(int)
TypeCode
.DateTime] = InternalPrimitiveTypeE.DateTime;
462
codeATemp[(int)
TypeCode
.String] = InternalPrimitiveTypeE.Invalid;
467
internal static InternalPrimitiveTypeE ToPrimitiveTypeEnum(
TypeCode
typeCode)
system\runtime\serialization\iformatterconverter.cs (1)
25
Object Convert(Object value,
TypeCode
typeCode);
system\sbyte.cs (2)
204
public
TypeCode
GetTypeCode() {
205
return
TypeCode
.SByte;
system\single.cs (2)
267
public
TypeCode
GetTypeCode() {
268
return
TypeCode
.Single;
system\string.cs (2)
3360
public
TypeCode
GetTypeCode() {
3361
return
TypeCode
.String;
system\stubhelpers.cs (13)
1033
case
TypeCode
.SByte: vt = VarEnum.VT_I1; break;
1034
case
TypeCode
.Byte: vt = VarEnum.VT_UI1; break;
1035
case
TypeCode
.Int16: vt = VarEnum.VT_I2; break;
1036
case
TypeCode
.UInt16: vt = VarEnum.VT_UI2; break;
1037
case
TypeCode
.Int32: vt = VarEnum.VT_I4; break;
1038
case
TypeCode
.UInt32: vt = VarEnum.VT_UI4; break;
1039
case
TypeCode
.Int64: vt = VarEnum.VT_I8; break;
1040
case
TypeCode
.UInt64: vt = VarEnum.VT_UI8; break;
1041
case
TypeCode
.Single: vt = VarEnum.VT_R4; break;
1042
case
TypeCode
.Double: vt = VarEnum.VT_R8; break;
1043
case
TypeCode
.Char: vt = (IsAnsi(dwFlags) ? (VarEnum)VTHACK_ANSICHAR : VarEnum.VT_UI2); break;
1044
case
TypeCode
.Boolean: vt = (VarEnum)VTHACK_WINBOOL; break;
1046
case
TypeCode
.Object:
system\type.cs (4)
234
public static
TypeCode
GetTypeCode(Type type)
237
return
TypeCode
.Empty;
241
protected virtual
TypeCode
GetTypeCodeImpl()
250
return
TypeCode
.Object;
system\uint16.cs (2)
172
public
TypeCode
GetTypeCode() {
173
return
TypeCode
.UInt16;
system\uint32.cs (2)
154
public
TypeCode
GetTypeCode() {
155
return
TypeCode
.UInt32;
system\uint64.cs (2)
149
public
TypeCode
GetTypeCode() {
150
return
TypeCode
.UInt64;
system\variant.cs (18)
455
case
TypeCode
.Empty:
459
case
TypeCode
.Object:
463
case
TypeCode
.DBNull:
467
case
TypeCode
.Boolean:
471
case
TypeCode
.Char:
475
case
TypeCode
.SByte:
479
case
TypeCode
.Byte:
483
case
TypeCode
.Int16:
487
case
TypeCode
.UInt16:
491
case
TypeCode
.Int32:
495
case
TypeCode
.UInt32:
499
case
TypeCode
.Int64:
503
case
TypeCode
.UInt64:
507
case
TypeCode
.Single:
511
case
TypeCode
.Double:
515
case
TypeCode
.Decimal:
519
case
TypeCode
.DateTime:
523
case
TypeCode
.String:
PresentationFramework (78)
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (12)
30
TypeCode
tc = Type.GetTypeCode(sourceType);
33
case
TypeCode
.String:
34
case
TypeCode
.Decimal:
35
case
TypeCode
.Single:
36
case
TypeCode
.Double:
37
case
TypeCode
.Int16:
38
case
TypeCode
.Int32:
39
case
TypeCode
.Int64:
40
case
TypeCode
.UInt16:
41
case
TypeCode
.UInt32:
42
case
TypeCode
.UInt64:
43
case
TypeCode
.Byte:
src\Framework\System\Windows\Controls\VirtualizationCacheLengthConverter.cs (11)
45
TypeCode
tc = Type.GetTypeCode(sourceType);
48
case
TypeCode
.String:
49
case
TypeCode
.Decimal:
50
case
TypeCode
.Single:
51
case
TypeCode
.Double:
52
case
TypeCode
.Int16:
53
case
TypeCode
.Int32:
54
case
TypeCode
.Int64:
55
case
TypeCode
.UInt16:
56
case
TypeCode
.UInt32:
57
case
TypeCode
.UInt64:
src\Framework\System\Windows\CornerRadiusConverter.cs (11)
47
TypeCode
tc = Type.GetTypeCode(sourceType);
50
case
TypeCode
.String:
51
case
TypeCode
.Decimal:
52
case
TypeCode
.Single:
53
case
TypeCode
.Double:
54
case
TypeCode
.Int16:
55
case
TypeCode
.Int32:
56
case
TypeCode
.Int64:
57
case
TypeCode
.UInt16:
58
case
TypeCode
.UInt32:
59
case
TypeCode
.UInt64:
src\Framework\System\Windows\FigureLengthConverter.cs (11)
58
TypeCode
tc = Type.GetTypeCode(sourceType);
61
case
TypeCode
.String:
62
case
TypeCode
.Decimal:
63
case
TypeCode
.Single:
64
case
TypeCode
.Double:
65
case
TypeCode
.Int16:
66
case
TypeCode
.Int32:
67
case
TypeCode
.Int64:
68
case
TypeCode
.UInt16:
69
case
TypeCode
.UInt32:
70
case
TypeCode
.UInt64:
src\Framework\System\Windows\GridLengthConverter.cs (11)
61
TypeCode
tc = Type.GetTypeCode(sourceType);
64
case
TypeCode
.String:
65
case
TypeCode
.Decimal:
66
case
TypeCode
.Single:
67
case
TypeCode
.Double:
68
case
TypeCode
.Int16:
69
case
TypeCode
.Int32:
70
case
TypeCode
.Int64:
71
case
TypeCode
.UInt16:
72
case
TypeCode
.UInt32:
73
case
TypeCode
.UInt64:
src\Framework\System\Windows\LengthConverter.cs (11)
54
TypeCode
tc = Type.GetTypeCode(sourceType);
57
case
TypeCode
.String:
58
case
TypeCode
.Decimal:
59
case
TypeCode
.Single:
60
case
TypeCode
.Double:
61
case
TypeCode
.Int16:
62
case
TypeCode
.Int32:
63
case
TypeCode
.Int64:
64
case
TypeCode
.UInt16:
65
case
TypeCode
.UInt32:
66
case
TypeCode
.UInt64:
src\Framework\System\Windows\ThicknessConverter.cs (11)
47
TypeCode
tc = Type.GetTypeCode(sourceType);
50
case
TypeCode
.String:
51
case
TypeCode
.Decimal:
52
case
TypeCode
.Single:
53
case
TypeCode
.Double:
54
case
TypeCode
.Int16:
55
case
TypeCode
.Int32:
56
case
TypeCode
.Int64:
57
case
TypeCode
.UInt16:
58
case
TypeCode
.UInt32:
59
case
TypeCode
.UInt64:
System.AddIn.Contract (108)
System\Addin\Contract\RemoteArgument.cs (108)
51
private readonly
TypeCode
intrinsicTypeCode;
82
TypeCode
typeCode;
105
public static RemoteArgument CreateRemoteArgument(object value, bool isByRef,
TypeCode
typeCodeToUse)
111
if ((typeCodeToUse ==
TypeCode
.Object) && (contractValue == null) && (value != null))
118
else if ((typeCodeToUse ==
TypeCode
.Empty) && (value != System.Reflection.Missing.Value))
123
else if ((convertibleValue == null) && (value != null) && (arrayValue == null) && (typeCodeToUse !=
TypeCode
.Object) && (typeCodeToUse !=
TypeCode
.Empty))
134
TypeCode
arrayTypeCode = Type.GetTypeCode(arrayValue.GetType().GetElementType());
135
if ((arrayTypeCode ==
TypeCode
.Object) || (arrayTypeCode != typeCodeToUse))
150
case
TypeCode
.Boolean:
159
case
TypeCode
.Byte:
168
case
TypeCode
.Char:
177
case
TypeCode
.DateTime:
186
case
TypeCode
.DBNull:
195
case
TypeCode
.Decimal:
204
case
TypeCode
.Double:
213
case
TypeCode
.Int16:
222
case
TypeCode
.Int32:
231
case
TypeCode
.Int64:
240
case
TypeCode
.SByte:
249
case
TypeCode
.Single:
258
case
TypeCode
.String:
267
case
TypeCode
.UInt16:
276
case
TypeCode
.UInt32:
285
case
TypeCode
.UInt64:
294
case
TypeCode
.Empty:
297
return new RemoteArgument(RemoteArgumentKind.Missing,
TypeCode
.Empty, isByRef);
299
case
TypeCode
.Object:
323
this.intrinsicTypeCode =
TypeCode
.Object;
331
this.intrinsicTypeCode =
TypeCode
.Object;
338
public RemoteArgument(RemoteArgumentKind remoteArgKind,
TypeCode
typeCode) : this(remoteArgKind, typeCode, false)
342
public RemoteArgument(RemoteArgumentKind remoteArgKind,
TypeCode
typeCode, bool isByRef)
350
if (typeCode !=
TypeCode
.Empty)
356
if (typeCode ==
TypeCode
.Object ||
357
typeCode ==
TypeCode
.Empty)
363
if (typeCode !=
TypeCode
.Object)
383
this.intrinsicTypeCode =
TypeCode
.Boolean;
391
this.intrinsicTypeCode =
TypeCode
.Boolean;
401
this.intrinsicTypeCode =
TypeCode
.Byte;
409
this.intrinsicTypeCode =
TypeCode
.Byte;
419
this.intrinsicTypeCode =
TypeCode
.Char;
427
this.intrinsicTypeCode =
TypeCode
.Char;
437
this.intrinsicTypeCode =
TypeCode
.DateTime;
445
this.intrinsicTypeCode =
TypeCode
.DateTime;
455
this.intrinsicTypeCode =
TypeCode
.DBNull;
463
this.intrinsicTypeCode =
TypeCode
.DBNull;
473
this.intrinsicTypeCode =
TypeCode
.Decimal;
481
this.intrinsicTypeCode =
TypeCode
.Decimal;
491
this.intrinsicTypeCode =
TypeCode
.Double;
499
this.intrinsicTypeCode =
TypeCode
.Double;
509
this.intrinsicTypeCode =
TypeCode
.Int16;
517
this.intrinsicTypeCode =
TypeCode
.Int16;
527
this.intrinsicTypeCode =
TypeCode
.Int32;
535
this.intrinsicTypeCode =
TypeCode
.Int32;
545
this.intrinsicTypeCode =
TypeCode
.Int64;
553
this.intrinsicTypeCode =
TypeCode
.Int64;
563
this.intrinsicTypeCode =
TypeCode
.Single;
571
this.intrinsicTypeCode =
TypeCode
.Single;
581
this.intrinsicTypeCode =
TypeCode
.String;
589
this.intrinsicTypeCode =
TypeCode
.String;
602
this.intrinsicTypeCode =
TypeCode
.SByte;
611
this.intrinsicTypeCode =
TypeCode
.SByte;
622
this.intrinsicTypeCode =
TypeCode
.UInt16;
631
this.intrinsicTypeCode =
TypeCode
.UInt16;
642
this.intrinsicTypeCode =
TypeCode
.UInt32;
651
this.intrinsicTypeCode =
TypeCode
.UInt32;
662
this.intrinsicTypeCode =
TypeCode
.UInt64;
671
this.intrinsicTypeCode =
TypeCode
.UInt64;
694
if (Type.GetTypeCode(array.GetType().GetElementType()) ==
TypeCode
.Object)
716
if (Type.GetTypeCode(array.GetType().GetElementType()) ==
TypeCode
.Object)
739
public
TypeCode
TypeCode
775
this.intrinsicTypeCode ==
TypeCode
.Object)
790
this.intrinsicTypeCode ==
TypeCode
.Object)
808
this.intrinsicTypeCode ==
TypeCode
.Empty)
834
this.intrinsicTypeCode ==
TypeCode
.Boolean)
852
this.intrinsicTypeCode ==
TypeCode
.Boolean)
870
this.intrinsicTypeCode ==
TypeCode
.Byte)
888
this.intrinsicTypeCode ==
TypeCode
.Byte)
906
this.intrinsicTypeCode ==
TypeCode
.Char)
924
this.intrinsicTypeCode ==
TypeCode
.Char)
942
this.intrinsicTypeCode ==
TypeCode
.DateTime)
960
this.intrinsicTypeCode ==
TypeCode
.DateTime)
978
this.intrinsicTypeCode ==
TypeCode
.DBNull)
996
this.intrinsicTypeCode ==
TypeCode
.DBNull)
1014
this.intrinsicTypeCode ==
TypeCode
.Decimal)
1032
this.intrinsicTypeCode ==
TypeCode
.Decimal)
1050
this.intrinsicTypeCode ==
TypeCode
.Double)
1068
this.intrinsicTypeCode ==
TypeCode
.Double)
1086
this.intrinsicTypeCode ==
TypeCode
.Int16)
1104
this.intrinsicTypeCode ==
TypeCode
.Int16)
1122
this.intrinsicTypeCode ==
TypeCode
.Int32)
1140
this.intrinsicTypeCode ==
TypeCode
.Int32)
1158
this.intrinsicTypeCode ==
TypeCode
.Int64)
1176
this.intrinsicTypeCode ==
TypeCode
.Int64)
1194
this.intrinsicTypeCode ==
TypeCode
.Single)
1212
this.intrinsicTypeCode ==
TypeCode
.Single)
1230
this.intrinsicTypeCode ==
TypeCode
.String)
1248
this.intrinsicTypeCode ==
TypeCode
.String)
1269
this.intrinsicTypeCode ==
TypeCode
.SByte)
1287
this.intrinsicTypeCode ==
TypeCode
.SByte)
1306
this.intrinsicTypeCode ==
TypeCode
.UInt16)
1324
this.intrinsicTypeCode ==
TypeCode
.UInt16)
1343
this.intrinsicTypeCode ==
TypeCode
.UInt32)
1361
this.intrinsicTypeCode ==
TypeCode
.UInt32)
1380
this.intrinsicTypeCode ==
TypeCode
.UInt64)
1398
this.intrinsicTypeCode ==
TypeCode
.UInt64)
1418
this.intrinsicTypeCode !=
TypeCode
.Object)
1433
this.intrinsicTypeCode !=
TypeCode
.Object)
System.Core (258)
Microsoft\Scripting\Ast\ParameterExpression.cs (17)
49
case
TypeCode
.Boolean: return new PrimitiveParameterExpression<Boolean>(name);
50
case
TypeCode
.Byte: return new PrimitiveParameterExpression<Byte>(name);
51
case
TypeCode
.Char: return new PrimitiveParameterExpression<Char>(name);
52
case
TypeCode
.DateTime: return new PrimitiveParameterExpression<DateTime>(name);
53
case
TypeCode
.DBNull: return new PrimitiveParameterExpression<DBNull>(name);
54
case
TypeCode
.Decimal: return new PrimitiveParameterExpression<Decimal>(name);
55
case
TypeCode
.Double: return new PrimitiveParameterExpression<Double>(name);
56
case
TypeCode
.Int16: return new PrimitiveParameterExpression<Int16>(name);
57
case
TypeCode
.Int32: return new PrimitiveParameterExpression<Int32>(name);
58
case
TypeCode
.Int64: return new PrimitiveParameterExpression<Int64>(name);
59
case
TypeCode
.Object:
71
case
TypeCode
.SByte: return new PrimitiveParameterExpression<SByte>(name);
72
case
TypeCode
.Single: return new PrimitiveParameterExpression<Single>(name);
73
case
TypeCode
.String: return new PrimitiveParameterExpression<String>(name);
74
case
TypeCode
.UInt16: return new PrimitiveParameterExpression<UInt16>(name);
75
case
TypeCode
.UInt32: return new PrimitiveParameterExpression<UInt32>(name);
76
case
TypeCode
.UInt64: return new PrimitiveParameterExpression<UInt64>(name);
Microsoft\Scripting\Ast\TypeUtils.cs (118)
62
case
TypeCode
.Char:
63
case
TypeCode
.SByte:
64
case
TypeCode
.Byte:
65
case
TypeCode
.Int16:
66
case
TypeCode
.Int32:
67
case
TypeCode
.Int64:
68
case
TypeCode
.Double:
69
case
TypeCode
.Single:
70
case
TypeCode
.UInt16:
71
case
TypeCode
.UInt32:
72
case
TypeCode
.UInt64:
85
case
TypeCode
.Byte:
86
case
TypeCode
.SByte:
87
case
TypeCode
.Int16:
88
case
TypeCode
.Int32:
89
case
TypeCode
.Int64:
90
case
TypeCode
.UInt16:
91
case
TypeCode
.UInt32:
92
case
TypeCode
.UInt64:
104
case
TypeCode
.Int16:
105
case
TypeCode
.Int32:
106
case
TypeCode
.Int64:
107
case
TypeCode
.Double:
108
case
TypeCode
.Single:
109
case
TypeCode
.UInt16:
110
case
TypeCode
.UInt32:
111
case
TypeCode
.UInt64:
122
case
TypeCode
.UInt16:
123
case
TypeCode
.UInt32:
124
case
TypeCode
.UInt64:
135
case
TypeCode
.Int64:
136
case
TypeCode
.Int32:
137
case
TypeCode
.Int16:
138
case
TypeCode
.UInt64:
139
case
TypeCode
.UInt32:
140
case
TypeCode
.UInt16:
141
case
TypeCode
.Boolean:
142
case
TypeCode
.SByte:
143
case
TypeCode
.Byte:
364
case
TypeCode
.Boolean:
365
case
TypeCode
.Byte:
366
case
TypeCode
.SByte:
367
case
TypeCode
.Int16:
368
case
TypeCode
.Int32:
369
case
TypeCode
.Int64:
370
case
TypeCode
.UInt16:
371
case
TypeCode
.UInt32:
372
case
TypeCode
.UInt64:
373
case
TypeCode
.Single:
374
case
TypeCode
.Double:
375
case
TypeCode
.Char:
488
TypeCode
tcSource = Type.GetTypeCode(source);
489
TypeCode
tcDest = Type.GetTypeCode(destination);
492
case
TypeCode
.SByte:
494
case
TypeCode
.Int16:
495
case
TypeCode
.Int32:
496
case
TypeCode
.Int64:
497
case
TypeCode
.Single:
498
case
TypeCode
.Double:
499
case
TypeCode
.Decimal:
503
case
TypeCode
.Byte:
505
case
TypeCode
.Int16:
506
case
TypeCode
.UInt16:
507
case
TypeCode
.Int32:
508
case
TypeCode
.UInt32:
509
case
TypeCode
.Int64:
510
case
TypeCode
.UInt64:
511
case
TypeCode
.Single:
512
case
TypeCode
.Double:
513
case
TypeCode
.Decimal:
517
case
TypeCode
.Int16:
519
case
TypeCode
.Int32:
520
case
TypeCode
.Int64:
521
case
TypeCode
.Single:
522
case
TypeCode
.Double:
523
case
TypeCode
.Decimal:
527
case
TypeCode
.UInt16:
529
case
TypeCode
.Int32:
530
case
TypeCode
.UInt32:
531
case
TypeCode
.Int64:
532
case
TypeCode
.UInt64:
533
case
TypeCode
.Single:
534
case
TypeCode
.Double:
535
case
TypeCode
.Decimal:
539
case
TypeCode
.Int32:
541
case
TypeCode
.Int64:
542
case
TypeCode
.Single:
543
case
TypeCode
.Double:
544
case
TypeCode
.Decimal:
548
case
TypeCode
.UInt32:
550
case
TypeCode
.UInt32:
551
case
TypeCode
.UInt64:
552
case
TypeCode
.Single:
553
case
TypeCode
.Double:
554
case
TypeCode
.Decimal:
558
case
TypeCode
.Int64:
559
case
TypeCode
.UInt64:
561
case
TypeCode
.Single:
562
case
TypeCode
.Double:
563
case
TypeCode
.Decimal:
567
case
TypeCode
.Char:
569
case
TypeCode
.UInt16:
570
case
TypeCode
.Int32:
571
case
TypeCode
.UInt32:
572
case
TypeCode
.Int64:
573
case
TypeCode
.UInt64:
574
case
TypeCode
.Single:
575
case
TypeCode
.Double:
576
case
TypeCode
.Decimal:
580
case
TypeCode
.Single:
581
return (tcDest ==
TypeCode
.Double);
638
case
TypeCode
.Byte:
639
case
TypeCode
.UInt16:
640
case
TypeCode
.Char:
641
case
TypeCode
.UInt32:
642
case
TypeCode
.UInt64:
652
case
TypeCode
.Single:
653
case
TypeCode
.Double:
Microsoft\Scripting\Compiler\ILGen.cs (98)
171
case
TypeCode
.Boolean:
172
case
TypeCode
.SByte:
175
case
TypeCode
.Byte:
178
case
TypeCode
.Int16:
181
case
TypeCode
.Char:
182
case
TypeCode
.UInt16:
185
case
TypeCode
.Int32:
188
case
TypeCode
.UInt32:
191
case
TypeCode
.Int64:
192
case
TypeCode
.UInt64:
195
case
TypeCode
.Single:
198
case
TypeCode
.Double:
219
case
TypeCode
.Boolean:
220
case
TypeCode
.SByte:
221
case
TypeCode
.Byte:
224
case
TypeCode
.Char:
225
case
TypeCode
.Int16:
226
case
TypeCode
.UInt16:
229
case
TypeCode
.Int32:
230
case
TypeCode
.UInt32:
233
case
TypeCode
.Int64:
234
case
TypeCode
.UInt64:
237
case
TypeCode
.Single:
240
case
TypeCode
.Double:
457
case
TypeCode
.Boolean:
458
case
TypeCode
.SByte:
459
case
TypeCode
.Int16:
460
case
TypeCode
.Int32:
461
case
TypeCode
.Int64:
462
case
TypeCode
.Single:
463
case
TypeCode
.Double:
464
case
TypeCode
.Char:
465
case
TypeCode
.Byte:
466
case
TypeCode
.UInt16:
467
case
TypeCode
.UInt32:
468
case
TypeCode
.UInt64:
469
case
TypeCode
.Decimal:
470
case
TypeCode
.String:
545
case
TypeCode
.Boolean:
548
case
TypeCode
.SByte:
551
case
TypeCode
.Int16:
554
case
TypeCode
.Int32:
557
case
TypeCode
.Int64:
560
case
TypeCode
.Single:
563
case
TypeCode
.Double:
566
case
TypeCode
.Char:
569
case
TypeCode
.Byte:
572
case
TypeCode
.UInt16:
575
case
TypeCode
.UInt32:
578
case
TypeCode
.UInt64:
581
case
TypeCode
.Decimal:
584
case
TypeCode
.String:
666
TypeCode
tc = Type.GetTypeCode(typeTo);
671
case
TypeCode
.SByte:
674
case
TypeCode
.Int16:
677
case
TypeCode
.Int32:
680
case
TypeCode
.Int64:
683
case
TypeCode
.Byte:
686
case
TypeCode
.UInt16:
687
case
TypeCode
.Char:
690
case
TypeCode
.UInt32:
693
case
TypeCode
.UInt64:
701
case
TypeCode
.SByte:
704
case
TypeCode
.Int16:
707
case
TypeCode
.Int32:
710
case
TypeCode
.Int64:
713
case
TypeCode
.Byte:
716
case
TypeCode
.UInt16:
717
case
TypeCode
.Char:
720
case
TypeCode
.UInt32:
723
case
TypeCode
.UInt64:
732
case
TypeCode
.SByte:
735
case
TypeCode
.Byte:
738
case
TypeCode
.Int16:
741
case
TypeCode
.UInt16:
742
case
TypeCode
.Char:
745
case
TypeCode
.Int32:
748
case
TypeCode
.UInt32:
751
case
TypeCode
.Int64:
758
case
TypeCode
.UInt64:
987
case
TypeCode
.Object:
988
case
TypeCode
.DateTime:
1006
case
TypeCode
.Empty:
1007
case
TypeCode
.String:
1008
case
TypeCode
.DBNull:
1012
case
TypeCode
.Boolean:
1013
case
TypeCode
.Char:
1014
case
TypeCode
.SByte:
1015
case
TypeCode
.Byte:
1016
case
TypeCode
.Int16:
1017
case
TypeCode
.UInt16:
1018
case
TypeCode
.Int32:
1019
case
TypeCode
.UInt32:
1023
case
TypeCode
.Int64:
1024
case
TypeCode
.UInt64:
1029
case
TypeCode
.Single:
1033
case
TypeCode
.Double:
1037
case
TypeCode
.Decimal:
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (4)
307
case
TypeCode
.Byte:
310
case
TypeCode
.SByte:
313
case
TypeCode
.UInt16:
316
case
TypeCode
.Int16:
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (12)
254
var
code = Type.GetTypeCode(Type);
255
Is64BitSwitch = code ==
TypeCode
.UInt64 || code ==
TypeCode
.Int64;
303
case
TypeCode
.Byte:
304
case
TypeCode
.SByte:
305
case
TypeCode
.Char:
306
case
TypeCode
.Int16:
307
case
TypeCode
.Int32:
308
case
TypeCode
.UInt16:
309
case
TypeCode
.UInt32:
310
case
TypeCode
.Int64:
311
case
TypeCode
.UInt64:
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (8)
247
case
TypeCode
.UInt16:
248
case
TypeCode
.UInt32:
249
case
TypeCode
.Int16:
250
case
TypeCode
.Int32:
253
case
TypeCode
.Int64:
254
case
TypeCode
.UInt64:
257
case
TypeCode
.Single:
260
case
TypeCode
.Double:
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
981
if (instance != null && instance.Type.IsValueType && Type.GetTypeCode(instance.Type) ==
TypeCode
.Object) {
System.Data (165)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (12)
208
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Int64)
229
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Boolean)
250
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Char)
252
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.String)
267
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.DateTime)
275
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Decimal)
283
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Single)
291
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Int32)
300
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Decimal)
308
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Double)
322
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Int16)
330
else if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Byte)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
1563
static internal ArgumentException InvalidDataType(
TypeCode
typecode) {
1572
static internal ArgumentException UnknownDataTypeCode(Type dataType,
TypeCode
typeCode) {
fx\src\data\System\Data\Common\DataStorage.cs (22)
20
Empty =
TypeCode
.Empty, // 0
21
Object =
TypeCode
.Object,
22
DBNull =
TypeCode
.DBNull,
23
Boolean =
TypeCode
.Boolean,
24
Char =
TypeCode
.Char,
25
SByte =
TypeCode
.SByte,
26
Byte =
TypeCode
.Byte,
27
Int16 =
TypeCode
.Int16,
28
UInt16 =
TypeCode
.UInt16,
29
Int32 =
TypeCode
.Int32,
30
UInt32 =
TypeCode
.UInt32,
31
Int64 =
TypeCode
.Int64,
32
UInt64 =
TypeCode
.UInt64,
33
Single =
TypeCode
.Single,
34
Double =
TypeCode
.Double,
35
Decimal =
TypeCode
.Decimal, // 15
36
DateTime =
TypeCode
.DateTime, // 16
38
String =
TypeCode
.String, // 18
273
case StorageType.Empty: throw ExceptionBuilder.InvalidStorageType(
TypeCode
.Empty);
274
case StorageType.DBNull: throw ExceptionBuilder.InvalidStorageType(
TypeCode
.DBNull);
330
TypeCode
tcode = Type.GetTypeCode(dataType);
331
if (
TypeCode
.Object != tcode) { // enum -> Int64/Int32/Int16/Byte
fx\src\data\System\Data\Common\ObjectStorage.cs (16)
171
case
TypeCode
.Boolean: return Families.BOOLEAN;
172
case
TypeCode
.Char: return Families.STRING;
173
case
TypeCode
.SByte: return Families.STRING;
174
case
TypeCode
.Byte: return Families.STRING;
175
case
TypeCode
.Int16: return Families.NUMBER;
176
case
TypeCode
.UInt16: return Families.NUMBER;
177
case
TypeCode
.Int32: return Families.NUMBER;
178
case
TypeCode
.UInt32: return Families.NUMBER;
179
case
TypeCode
.Int64: return Families.NUMBER;
180
case
TypeCode
.UInt64: return Families.NUMBER;
181
case
TypeCode
.Single: return Families.NUMBER;
182
case
TypeCode
.Double: return Families.NUMBER;
183
case
TypeCode
.Decimal: return Families.NUMBER;
184
case
TypeCode
.DateTime: return Families.DATETIME;
185
case
TypeCode
.String: return Families.STRING;
392
if (Type.GetTypeCode(value.GetType()) !=
TypeCode
.Object) {
fx\src\data\System\Data\DataException.cs (1)
1249
static public Exception InvalidStorageType(
TypeCode
typecode) {
fx\src\data\System\Data\Odbc\Odbc32.cs (20)
895
case
TypeCode
.Empty: throw ADP.InvalidDataType(
TypeCode
.Empty);
896
case
TypeCode
.Object:
911
case
TypeCode
.DBNull: throw ADP.InvalidDataType(
TypeCode
.DBNull);
912
case
TypeCode
.Boolean: return _Bit;
916
case
TypeCode
.SByte: return _SmallInt;
917
case
TypeCode
.Byte: return _TinyInt;
918
case
TypeCode
.Int16: return _SmallInt;
919
case
TypeCode
.UInt16: return _Int;
920
case
TypeCode
.Int32: return _Int;
921
case
TypeCode
.UInt32: return _BigInt;
922
case
TypeCode
.Int64: return _BigInt;
923
case
TypeCode
.UInt64: return _Numeric;
924
case
TypeCode
.Single: return _Real;
925
case
TypeCode
.Double: return _Double;
926
case
TypeCode
.Decimal: return _Numeric;
927
case
TypeCode
.DateTime: return _DateTime;
929
case
TypeCode
.Char:
930
case
TypeCode
.String: return _NVarChar;
fx\src\data\System\Data\OleDb\OLEDB_Enum.cs (19)
296
case
TypeCode
.Empty: return NativeDBType.D_Empty;
297
case
TypeCode
.Object: return NativeDBType.D_Variant;
298
case
TypeCode
.DBNull: throw ADP.InvalidDataType(
TypeCode
.DBNull);
299
case
TypeCode
.Boolean: return NativeDBType.D_Boolean;
300
case
TypeCode
.Char: return NativeDBType.D_Char;
301
case
TypeCode
.SByte: return NativeDBType.D_TinyInt;
302
case
TypeCode
.Byte: return NativeDBType.D_UnsignedTinyInt;
303
case
TypeCode
.Int16: return NativeDBType.D_SmallInt;
304
case
TypeCode
.UInt16: return NativeDBType.D_UnsignedSmallInt;
305
case
TypeCode
.Int32: return NativeDBType.D_Integer;
306
case
TypeCode
.UInt32: return NativeDBType.D_UnsignedInt;
307
case
TypeCode
.Int64: return NativeDBType.D_BigInt;
308
case
TypeCode
.UInt64: return NativeDBType.D_UnsignedBigInt;
309
case
TypeCode
.Single: return NativeDBType.D_Single;
310
case
TypeCode
.Double: return NativeDBType.D_Double;
311
case
TypeCode
.Decimal: return NativeDBType.D_Decimal;
312
case
TypeCode
.DateTime: return NativeDBType.D_DBTimeStamp;
313
case
TypeCode
.String: return NativeDBType.D_VarWChar;
fx\src\data\System\Data\Sql\SqlMetaData.cs (48)
1048
case
TypeCode
.Boolean: value = this.Adjust((Boolean)value); break;
1049
case
TypeCode
.Byte: value = this.Adjust((Byte)value); break;
1050
case
TypeCode
.Char: value = this.Adjust((Char)value); break;
1051
case
TypeCode
.DateTime: value = this.Adjust((DateTime)value); break;
1052
case
TypeCode
.DBNull: /* DBNull passes through as is for all types */ break;
1053
case
TypeCode
.Decimal: value = this.Adjust((Decimal)value); break;
1054
case
TypeCode
.Double: value = this.Adjust((Double)value); break;
1055
case
TypeCode
.Empty: throw ADP.InvalidDataType(
TypeCode
.Empty);
1056
case
TypeCode
.Int16: value = this.Adjust((Int16)value); break;
1057
case
TypeCode
.Int32: value = this.Adjust((Int32)value); break;
1058
case
TypeCode
.Int64: value = this.Adjust((Int64)value); break;
1059
case
TypeCode
.SByte: throw ADP.InvalidDataType(
TypeCode
.SByte);
1060
case
TypeCode
.Single: value = this.Adjust((Single)value); break;
1061
case
TypeCode
.String: value = this.Adjust((String)value); break;
1062
case
TypeCode
.UInt16: throw ADP.InvalidDataType(
TypeCode
.UInt16);
1063
case
TypeCode
.UInt32: throw ADP.InvalidDataType(
TypeCode
.UInt32);
1064
case
TypeCode
.UInt64: throw ADP.InvalidDataType(
TypeCode
.UInt64);
1065
case
TypeCode
.Object:
1074
throw ADP.InvalidDataType(
TypeCode
.UInt64);
1132
case
TypeCode
.Boolean: smd = new SqlMetaData(name, SqlDbType.Bit); break;
1133
case
TypeCode
.Byte: smd = new SqlMetaData(name, SqlDbType.TinyInt); break;
1134
case
TypeCode
.Char: smd = new SqlMetaData(name, SqlDbType.NVarChar, 1 ); break;
1135
case
TypeCode
.DateTime: smd = new SqlMetaData(name, SqlDbType.DateTime); break;
1136
case
TypeCode
.DBNull: throw ADP.InvalidDataType(
TypeCode
.DBNull);
1137
case
TypeCode
.Decimal:
1144
case
TypeCode
.Double: smd = new SqlMetaData(name, SqlDbType.Float); break;
1145
case
TypeCode
.Empty: throw ADP.InvalidDataType(
TypeCode
.Empty);
1146
case
TypeCode
.Int16: smd = new SqlMetaData(name, SqlDbType.SmallInt); break;
1147
case
TypeCode
.Int32: smd = new SqlMetaData(name, SqlDbType.Int); break;
1148
case
TypeCode
.Int64: smd = new SqlMetaData(name, SqlDbType.BigInt); break;
1149
case
TypeCode
.SByte: throw ADP.InvalidDataType(
TypeCode
.SByte);
1150
case
TypeCode
.Single: smd = new SqlMetaData(name, SqlDbType.Real); break;
1151
case
TypeCode
.String:
1162
case
TypeCode
.UInt16: throw ADP.InvalidDataType(
TypeCode
.UInt16);
1163
case
TypeCode
.UInt32: throw ADP.InvalidDataType(
TypeCode
.UInt32);
1164
case
TypeCode
.UInt64: throw ADP.InvalidDataType(
TypeCode
.UInt64);
1165
case
TypeCode
.Object:
fx\src\data\System\Data\SqlClient\SqlEnums.cs (25)
286
case
TypeCode
.Empty: throw ADP.InvalidDataType(
TypeCode
.Empty);
287
case
TypeCode
.Object:
368
case
TypeCode
.DBNull: throw ADP.InvalidDataType(
TypeCode
.DBNull);
369
case
TypeCode
.Boolean: return MetaBit;
370
case
TypeCode
.Char: throw ADP.InvalidDataType(
TypeCode
.Char);
371
case
TypeCode
.SByte: throw ADP.InvalidDataType(
TypeCode
.SByte);
372
case
TypeCode
.Byte: return MetaTinyInt;
373
case
TypeCode
.Int16: return MetaSmallInt;
374
case
TypeCode
.UInt16: throw ADP.InvalidDataType(
TypeCode
.UInt16);
375
case
TypeCode
.Int32: return MetaInt;
376
case
TypeCode
.UInt32: throw ADP.InvalidDataType(
TypeCode
.UInt32);
377
case
TypeCode
.Int64: return MetaBigInt;
378
case
TypeCode
.UInt64: throw ADP.InvalidDataType(
TypeCode
.UInt64);
379
case
TypeCode
.Single: return MetaReal;
380
case
TypeCode
.Double: return MetaFloat;
381
case
TypeCode
.Decimal: return MetaDecimal;
382
case
TypeCode
.DateTime: return MetaDateTime;
383
case
TypeCode
.String: return (inferLen ? PromoteStringType((string)value) : MetaNVarChar);
System.Data.DataSetExtensions (5)
System\Data\DataRowComparer.cs (5)
72
case
TypeCode
.Byte:
74
case
TypeCode
.Int16:
76
case
TypeCode
.Int32:
78
case
TypeCode
.Int64:
80
case
TypeCode
.String:
System.Data.Entity (45)
System\Data\Common\EntityUtil.cs (2)
1573
static internal ArgumentException InvalidDataType(
TypeCode
typecode) {
1577
static internal ArgumentException UnknownDataTypeCode(Type dataType,
TypeCode
typeCode) {
System\Data\Common\Internal\Materialization\Translator.cs (11)
2152
TypeCode
typeCode = Type.GetTypeCode(type);
2156
case
TypeCode
.String:
2160
case
TypeCode
.Int16:
2163
case
TypeCode
.Int32:
2166
case
TypeCode
.Int64:
2169
case
TypeCode
.Boolean:
2172
case
TypeCode
.Decimal:
2175
case
TypeCode
.Double:
2178
case
TypeCode
.Single:
2181
case
TypeCode
.DateTime:
2184
case
TypeCode
.Byte:
System\Data\Metadata\Edm\Provider\ClrProviderManifest.cs (12)
87
case
TypeCode
.Boolean:
90
case
TypeCode
.Byte:
93
case
TypeCode
.DateTime:
97
case
TypeCode
.Decimal:
100
case
TypeCode
.Double:
106
case
TypeCode
.Int16:
109
case
TypeCode
.Int32:
112
case
TypeCode
.Int64:
115
case
TypeCode
.SByte:
118
case
TypeCode
.Single:
121
case
TypeCode
.String:
125
case
TypeCode
.Object:
System\Data\Metadata\TypeHelpers.cs (19)
702
case
TypeCode
.Empty:
703
throw EntityUtil.InvalidDataType(
TypeCode
.Empty);
705
case
TypeCode
.Object:
730
case
TypeCode
.DBNull:
732
case
TypeCode
.Boolean:
734
case
TypeCode
.SByte:
736
case
TypeCode
.Byte:
738
case
TypeCode
.Char:
741
case
TypeCode
.Int16:
743
case
TypeCode
.UInt16:
745
case
TypeCode
.Int32:
747
case
TypeCode
.UInt32:
749
case
TypeCode
.Int64:
751
case
TypeCode
.UInt64:
753
case
TypeCode
.Single:
755
case
TypeCode
.Double:
757
case
TypeCode
.Decimal:
759
case
TypeCode
.DateTime:
761
case
TypeCode
.String:
System\Data\SqlClient\SqlProviderServices.cs (1)
415
Type.GetTypeCode(value.GetType()) ==
TypeCode
.Object)
System.Data.Linq (189)
parent\DbmlShared\Mapping.cs (25)
486
case
TypeCode
.Byte:
487
case
TypeCode
.SByte:
488
case
TypeCode
.Int16:
489
case
TypeCode
.Int32:
490
case
TypeCode
.Int64:
491
case
TypeCode
.UInt16:
492
case
TypeCode
.UInt32:
493
case
TypeCode
.UInt64:
494
case
TypeCode
.Char:
495
case
TypeCode
.String:
496
case
TypeCode
.Boolean:
542
case
TypeCode
.Byte:
543
case
TypeCode
.SByte:
544
case
TypeCode
.Int16:
545
case
TypeCode
.Int32:
546
case
TypeCode
.Int64:
547
case
TypeCode
.UInt16:
548
case
TypeCode
.UInt32:
549
case
TypeCode
.UInt64:
550
case
TypeCode
.Char:
551
case
TypeCode
.String:
552
case
TypeCode
.Boolean:
553
case
TypeCode
.Decimal:
554
case
TypeCode
.Single:
555
case
TypeCode
.Double:
SqlClient\Common\TypeSystem.cs (17)
200
TypeCode
tc = Type.GetTypeCode(type);
203
case
TypeCode
.Byte:
204
case
TypeCode
.SByte:
205
case
TypeCode
.Int16:
206
case
TypeCode
.Int32:
207
case
TypeCode
.Int64:
208
case
TypeCode
.UInt16:
209
case
TypeCode
.UInt32:
210
case
TypeCode
.UInt64:
211
case
TypeCode
.Single:
212
case
TypeCode
.Double:
213
case
TypeCode
.Decimal:
214
case
TypeCode
.Char:
215
case
TypeCode
.String:
216
case
TypeCode
.Boolean:
217
case
TypeCode
.DateTime:
219
case
TypeCode
.Object:
SqlClient\Query\QueryConverter.cs (5)
2537
case
TypeCode
.SByte:
2538
case
TypeCode
.Int16:
2539
case
TypeCode
.Int32:
2540
case
TypeCode
.Int64:
2541
case
TypeCode
.Decimal:
SqlClient\Query\SqlFormatter.cs (17)
1242
TypeCode
tc = Type.GetTypeCode(t);
1244
case
TypeCode
.Char:
1245
case
TypeCode
.String:
1246
case
TypeCode
.DateTime:
1251
case
TypeCode
.Boolean:
1254
case
TypeCode
.Byte:
1255
case
TypeCode
.Decimal:
1256
case
TypeCode
.Double:
1257
case
TypeCode
.Int16:
1258
case
TypeCode
.Int32:
1259
case
TypeCode
.Int64:
1260
case
TypeCode
.SByte:
1261
case
TypeCode
.Single:
1262
case
TypeCode
.UInt16:
1263
case
TypeCode
.UInt32:
1264
case
TypeCode
.UInt64:
1267
case
TypeCode
.Object: {
SqlClient\Query\SqlRetyper.cs (37)
45
var
tcTo = Type.GetTypeCode(to);
46
var
tcFrom = Type.GetTypeCode(from);
48
case
TypeCode
.Int16: return tcFrom ==
TypeCode
.Byte || tcFrom ==
TypeCode
.SByte;
49
case
TypeCode
.Int32: return tcFrom ==
TypeCode
.Byte || tcFrom ==
TypeCode
.SByte || tcFrom ==
TypeCode
.Int16 || tcFrom ==
TypeCode
.UInt16;
50
case
TypeCode
.Int64: return tcFrom ==
TypeCode
.Byte || tcFrom ==
TypeCode
.SByte || tcFrom ==
TypeCode
.Int16 || tcFrom ==
TypeCode
.UInt16 || tcFrom ==
TypeCode
.Int32 || tcFrom==
TypeCode
.UInt32;
51
case
TypeCode
.UInt16: return tcFrom ==
TypeCode
.Byte || tcFrom ==
TypeCode
.SByte;
52
case
TypeCode
.UInt32: return tcFrom ==
TypeCode
.Byte || tcFrom ==
TypeCode
.SByte || tcFrom ==
TypeCode
.Int16 || tcFrom ==
TypeCode
.UInt16;
53
case
TypeCode
.UInt64: return tcFrom ==
TypeCode
.Byte || tcFrom ==
TypeCode
.SByte || tcFrom ==
TypeCode
.Int16 || tcFrom ==
TypeCode
.UInt16 || tcFrom ==
TypeCode
.Int32 || tcFrom ==
TypeCode
.UInt32;
54
case
TypeCode
.Double: return tcFrom ==
TypeCode
.Single;
55
case
TypeCode
.Decimal: return tcFrom ==
TypeCode
.Single || tcFrom ==
TypeCode
.Double;
SqlClient\Reader\ObjectReaderCompiler.cs (27)
2051
case
TypeCode
.Object:
2052
case
TypeCode
.String:
2053
case
TypeCode
.DBNull:
2111
TypeCode
tc = Type.GetTypeCode(valueType);
2113
if (tc ==
TypeCode
.Single) {
2229
TypeCode
tc = Type.GetTypeCode(type);
2232
case
TypeCode
.SByte:
2233
case
TypeCode
.Byte:
2236
case
TypeCode
.Int16:
2237
case
TypeCode
.UInt16:
2240
case
TypeCode
.Int32:
2241
case
TypeCode
.UInt32:
2244
case
TypeCode
.Int64:
2245
case
TypeCode
.UInt64:
2248
case
TypeCode
.Single:
2251
case
TypeCode
.Double:
2290
TypeCode
tc = Type.GetTypeCode(type);
2291
System.Diagnostics.Debug.Assert(tc ==
TypeCode
.Int32);
2300
case
TypeCode
.Int32:
2339
TypeCode
tc = Type.GetTypeCode(type);
2341
case
TypeCode
.Boolean:
2344
case
TypeCode
.SByte:
2348
case
TypeCode
.Int16:
2352
case
TypeCode
.Int32:
2355
case
TypeCode
.Int64:
2358
case
TypeCode
.Single:
2361
case
TypeCode
.Double:
SqlClient\SqlBuilder.cs (26)
209
case
TypeCode
.Byte:
212
case
TypeCode
.SByte:
213
case
TypeCode
.Int16:
216
case
TypeCode
.Int32:
217
case
TypeCode
.UInt16:
220
case
TypeCode
.Int64:
221
case
TypeCode
.UInt32:
224
case
TypeCode
.UInt64:
225
case
TypeCode
.Decimal:
228
case
TypeCode
.Object:
239
case
TypeCode
.Boolean:
242
case
TypeCode
.Byte:
245
case
TypeCode
.SByte:
246
case
TypeCode
.Int16:
249
case
TypeCode
.Int32:
250
case
TypeCode
.UInt16:
253
case
TypeCode
.Int64:
254
case
TypeCode
.UInt32:
257
case
TypeCode
.UInt64:
260
case
TypeCode
.Decimal:
263
case
TypeCode
.Double:
266
case
TypeCode
.Single:
269
case
TypeCode
.Char:
272
case
TypeCode
.String:
275
case
TypeCode
.DateTime:
278
case
TypeCode
.Object:
SqlClient\SqlTypeSystemProvider.cs (35)
1416
TypeCode
tc = System.Type.GetTypeCode(type);
1418
case
TypeCode
.Boolean:
1420
case
TypeCode
.Byte:
1422
case
TypeCode
.SByte:
1423
case
TypeCode
.Int16:
1425
case
TypeCode
.Int32:
1426
case
TypeCode
.UInt16:
1428
case
TypeCode
.Int64:
1429
case
TypeCode
.UInt32:
1431
case
TypeCode
.UInt64:
1433
case
TypeCode
.Decimal:
1435
case
TypeCode
.Double:
1437
case
TypeCode
.Single:
1439
case
TypeCode
.Char:
1441
case
TypeCode
.String:
1443
case
TypeCode
.DateTime:
1445
case
TypeCode
.Object: {
1521
if (System.Type.GetTypeCode(type) ==
TypeCode
.Object &&
1536
TypeCode
tc = System.Type.GetTypeCode(type);
1538
case
TypeCode
.Boolean:
1540
case
TypeCode
.Byte:
1542
case
TypeCode
.SByte:
1543
case
TypeCode
.Int16:
1545
case
TypeCode
.Int32:
1546
case
TypeCode
.UInt16:
1548
case
TypeCode
.Int64:
1549
case
TypeCode
.UInt32:
1551
case
TypeCode
.UInt64:
1553
case
TypeCode
.Decimal:
1555
case
TypeCode
.Double:
1557
case
TypeCode
.Single:
1559
case
TypeCode
.Char:
1561
case
TypeCode
.String:
1563
case
TypeCode
.DateTime:
1565
case
TypeCode
.Object: {
System.Data.Services (62)
System\Data\Services\Parsing\RequestQueryParser.cs (62)
454
case
TypeCode
.Char:
455
case
TypeCode
.Single:
456
case
TypeCode
.Double:
457
case
TypeCode
.Decimal:
459
case
TypeCode
.SByte:
460
case
TypeCode
.Int16:
461
case
TypeCode
.Int32:
462
case
TypeCode
.Int64:
464
case
TypeCode
.Byte:
557
TypeCode
tc = Type.GetTypeCode(GetNonNullableType(type));
560
case
TypeCode
.SByte:
568
case
TypeCode
.Byte:
576
case
TypeCode
.Int16:
584
case
TypeCode
.Int32:
592
case
TypeCode
.Int64:
600
case
TypeCode
.Single:
608
case
TypeCode
.Double:
616
case
TypeCode
.Decimal:
658
TypeCode
sourceCode = sourceType.IsEnum ?
TypeCode
.Object : Type.GetTypeCode(sourceType);
659
TypeCode
targetCode = targetType.IsEnum ?
TypeCode
.Object : Type.GetTypeCode(targetType);
662
case
TypeCode
.SByte:
665
case
TypeCode
.SByte:
666
case
TypeCode
.Int16:
667
case
TypeCode
.Int32:
668
case
TypeCode
.Int64:
669
case
TypeCode
.Single:
670
case
TypeCode
.Double:
671
case
TypeCode
.Decimal:
676
case
TypeCode
.Byte:
679
case
TypeCode
.Byte:
680
case
TypeCode
.Int16:
681
case
TypeCode
.Int32:
682
case
TypeCode
.Int64:
683
case
TypeCode
.Single:
684
case
TypeCode
.Double:
685
case
TypeCode
.Decimal:
690
case
TypeCode
.Int16:
693
case
TypeCode
.Int16:
694
case
TypeCode
.Int32:
695
case
TypeCode
.Int64:
696
case
TypeCode
.Single:
697
case
TypeCode
.Double:
698
case
TypeCode
.Decimal:
703
case
TypeCode
.Int32:
706
case
TypeCode
.Int32:
707
case
TypeCode
.Int64:
708
case
TypeCode
.Single:
709
case
TypeCode
.Double:
710
case
TypeCode
.Decimal:
715
case
TypeCode
.Int64:
718
case
TypeCode
.Int64:
719
case
TypeCode
.Single:
720
case
TypeCode
.Double:
721
case
TypeCode
.Decimal:
726
case
TypeCode
.Single:
729
case
TypeCode
.Single:
730
case
TypeCode
.Double:
2520
case
TypeCode
.Int32:
2521
case
TypeCode
.Int64:
2524
case
TypeCode
.Double:
System.Data.SqlXml (36)
System\Xml\Xsl\Runtime\XsltLibrary.cs (26)
258
private static
TypeCode
GetTypeCode(XPathItem item) {
263
return
TypeCode
.String;
265
return
TypeCode
.Double;
268
return
TypeCode
.Boolean;
273
private static
TypeCode
WeakestTypeCode(
TypeCode
typeCode1,
TypeCode
typeCode2) {
274
Debug.Assert(
TypeCode
.Boolean <
TypeCode
.Double &&
TypeCode
.Double <
TypeCode
.String, "Cannot use the smallest TypeCode as a weakest one");
289
private static bool CompareValues(ComparisonOperator op, XPathItem left, XPathItem right,
TypeCode
compType) {
290
if (compType ==
TypeCode
.Double) {
294
if (compType ==
TypeCode
.String) {
297
Debug.Assert(compType ==
TypeCode
.Boolean);
303
private static bool CompareNodeSetAndValue(ComparisonOperator op, IList<XPathNavigator> nodeset, XPathItem val,
TypeCode
compType) {
304
Debug.Assert(compType ==
TypeCode
.Boolean || compType ==
TypeCode
.Double || compType ==
TypeCode
.String);
305
if (compType ==
TypeCode
.Boolean) {
319
private static bool CompareNodeSetAndNodeSet(ComparisonOperator op, IList<XPathNavigator> left, IList<XPathNavigator> right,
TypeCode
compType) {
341
return CompareNodeSetAndNodeSet(op, ToNodeSetOrRtf(left), ToNodeSetOrRtf(right),
TypeCode
.String);
380
return CompareNodeSetAndNodeSet(op, ToNodeSetOrRtf(left), ToNodeSetOrRtf(right),
TypeCode
.Double);
384
return CompareNodeSetAndValue(op, ToNodeSetOrRtf(left), rightItem, WeakestTypeCode(GetTypeCode(rightItem),
TypeCode
.Double));
391
return CompareNodeSetAndValue(op, ToNodeSetOrRtf(right), leftItem, WeakestTypeCode(GetTypeCode(leftItem),
TypeCode
.Double));
396
return CompareValues(op, leftItem, rightItem,
TypeCode
.Double);
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
327
if (Type.GetTypeCode(value.GetType()) ==
TypeCode
.Object) {
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (9)
456
case
TypeCode
.String :
458
case
TypeCode
.Boolean :
460
case
TypeCode
.Object :
472
case
TypeCode
.DateTime :
591
private static object ToNumeric(object argument,
TypeCode
typeCode) {
595
public static object ConvertToXPathType(object val, XPathResultType xt,
TypeCode
typeCode) {
600
if (typeCode ==
TypeCode
.String) {
787
private
TypeCode
[] typeCodes;
801
this.typeCodes = new
TypeCode
[parameters.Length];
System.Runtime.Serialization (245)
System\Runtime\Serialization\CodeGenerator.cs (95)
433
TypeCode
typeCode = Type.GetTypeCode(type);
434
if ((typeCode ==
TypeCode
.Object && type.IsValueType) ||
435
typeCode ==
TypeCode
.DateTime || typeCode ==
TypeCode
.Decimal)
822
case
TypeCode
.Boolean:
825
case
TypeCode
.Char:
826
case
TypeCode
.SByte:
827
case
TypeCode
.Byte:
828
case
TypeCode
.Int16:
829
case
TypeCode
.UInt16:
830
case
TypeCode
.Int32:
831
case
TypeCode
.UInt32:
834
case
TypeCode
.Int64:
835
case
TypeCode
.UInt64:
838
case
TypeCode
.Single:
841
case
TypeCode
.Double:
844
case
TypeCode
.Decimal:
845
case
TypeCode
.DateTime:
946
OpCode GetLdindOpCode(
TypeCode
typeCode)
950
case
TypeCode
.Boolean:
952
case
TypeCode
.Char:
954
case
TypeCode
.SByte:
956
case
TypeCode
.Byte:
958
case
TypeCode
.Int16:
960
case
TypeCode
.UInt16:
962
case
TypeCode
.Int32:
964
case
TypeCode
.UInt32:
966
case
TypeCode
.Int64:
968
case
TypeCode
.UInt64:
970
case
TypeCode
.Single:
972
case
TypeCode
.Double:
974
case
TypeCode
.String:
1060
case
TypeCode
.Boolean:
1063
case
TypeCode
.Char:
1066
case
TypeCode
.SByte:
1067
case
TypeCode
.Byte:
1068
case
TypeCode
.Int16:
1069
case
TypeCode
.UInt16:
1072
case
TypeCode
.Int32:
1075
case
TypeCode
.UInt32:
1078
case
TypeCode
.UInt64:
1081
case
TypeCode
.Int64:
1084
case
TypeCode
.Single:
1087
case
TypeCode
.Double:
1090
case
TypeCode
.String:
1093
case
TypeCode
.Object:
1094
case
TypeCode
.Decimal:
1095
case
TypeCode
.DateTime:
1096
case
TypeCode
.Empty:
1097
case
TypeCode
.DBNull:
1367
OpCode GetLdelemOpCode(
TypeCode
typeCode)
1371
case
TypeCode
.Object:
1372
case
TypeCode
.DBNull:
1374
case
TypeCode
.Boolean:
1376
case
TypeCode
.Char:
1378
case
TypeCode
.SByte:
1380
case
TypeCode
.Byte:
1382
case
TypeCode
.Int16:
1384
case
TypeCode
.UInt16:
1386
case
TypeCode
.Int32:
1388
case
TypeCode
.UInt32:
1390
case
TypeCode
.Int64:
1392
case
TypeCode
.UInt64:
1394
case
TypeCode
.Single:
1396
case
TypeCode
.Double:
1398
case
TypeCode
.String:
1432
OpCode GetStelemOpCode(
TypeCode
typeCode)
1436
case
TypeCode
.Object:
1437
case
TypeCode
.DBNull:
1439
case
TypeCode
.Boolean:
1441
case
TypeCode
.Char:
1443
case
TypeCode
.SByte:
1445
case
TypeCode
.Byte:
1447
case
TypeCode
.Int16:
1449
case
TypeCode
.UInt16:
1451
case
TypeCode
.Int32:
1453
case
TypeCode
.UInt32:
1455
case
TypeCode
.Int64:
1457
case
TypeCode
.UInt64:
1459
case
TypeCode
.Single:
1461
case
TypeCode
.Double:
1463
case
TypeCode
.String:
1611
OpCode GetConvOpCode(
TypeCode
typeCode)
1615
case
TypeCode
.Boolean:
1617
case
TypeCode
.Char:
1619
case
TypeCode
.SByte:
1621
case
TypeCode
.Byte:
1623
case
TypeCode
.Int16:
1625
case
TypeCode
.UInt16:
1627
case
TypeCode
.Int32:
1629
case
TypeCode
.UInt32:
1631
case
TypeCode
.Int64:
1633
case
TypeCode
.UInt64:
1635
case
TypeCode
.Single:
1637
case
TypeCode
.Double:
System\Runtime\Serialization\DataContract.cs (15)
807
case
TypeCode
.Boolean:
810
case
TypeCode
.Byte:
813
case
TypeCode
.Char:
816
case
TypeCode
.DateTime:
819
case
TypeCode
.Decimal:
822
case
TypeCode
.Double:
825
case
TypeCode
.Int16:
828
case
TypeCode
.Int32:
831
case
TypeCode
.Int64:
834
case
TypeCode
.SByte:
837
case
TypeCode
.Single:
840
case
TypeCode
.String:
843
case
TypeCode
.UInt16:
846
case
TypeCode
.UInt32:
849
case
TypeCode
.UInt64:
System\Runtime\Serialization\ExtensionDataReader.cs (16)
665
case
TypeCode
.Boolean:
668
case
TypeCode
.Char:
671
case
TypeCode
.Byte:
674
case
TypeCode
.Int16:
677
case
TypeCode
.Int32:
680
case
TypeCode
.Int64:
683
case
TypeCode
.Single:
686
case
TypeCode
.Double:
689
case
TypeCode
.Decimal:
692
case
TypeCode
.DateTime:
696
case
TypeCode
.String:
699
case
TypeCode
.SByte:
702
case
TypeCode
.UInt16:
705
case
TypeCode
.UInt32:
708
case
TypeCode
.UInt64:
711
case
TypeCode
.Object:
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (7)
951
case
TypeCode
.Boolean:
954
case
TypeCode
.Decimal:
957
case
TypeCode
.Int32:
960
case
TypeCode
.Int64:
963
case
TypeCode
.Single:
966
case
TypeCode
.Double:
969
case
TypeCode
.DateTime:
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (7)
603
case
TypeCode
.Boolean:
606
case
TypeCode
.DateTime:
609
case
TypeCode
.Decimal:
612
case
TypeCode
.Int32:
615
case
TypeCode
.Int64:
618
case
TypeCode
.Single:
621
case
TypeCode
.Double:
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (7)
64
internal static object ParseJsonNumber(string value, out
TypeCode
objectTypeCode)
76
objectTypeCode =
TypeCode
.Int32;
83
objectTypeCode =
TypeCode
.Int64;
91
objectTypeCode =
TypeCode
.Decimal;
99
objectTypeCode =
TypeCode
.Double;
106
objectTypeCode =
TypeCode
.Double;
112
TypeCode
unusedTypeCode;
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (12)
85
TypeCode
type;
89
case
TypeCode
.Byte:
91
case
TypeCode
.SByte:
93
case
TypeCode
.Int16:
95
case
TypeCode
.Int32:
97
case
TypeCode
.Int64:
99
case
TypeCode
.UInt16:
101
case
TypeCode
.UInt32:
103
case
TypeCode
.UInt64:
105
case
TypeCode
.Single:
107
case
TypeCode
.Double:
109
case
TypeCode
.Decimal:
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (7)
806
case
TypeCode
.Boolean:
809
case
TypeCode
.DateTime:
812
case
TypeCode
.Decimal:
815
case
TypeCode
.Int32:
818
case
TypeCode
.Int64:
821
case
TypeCode
.Single:
824
case
TypeCode
.Double:
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (7)
595
case
TypeCode
.Boolean:
598
case
TypeCode
.DateTime:
601
case
TypeCode
.Decimal:
604
case
TypeCode
.Int32:
607
case
TypeCode
.Int64:
610
case
TypeCode
.Single:
613
case
TypeCode
.Double:
System\Runtime\Serialization\XmlReaderDelegator.cs (36)
237
case
TypeCode
.Boolean:
239
case
TypeCode
.Char:
241
case
TypeCode
.Byte:
243
case
TypeCode
.Int16:
245
case
TypeCode
.Int32:
247
case
TypeCode
.Int64:
249
case
TypeCode
.Single:
251
case
TypeCode
.Double:
253
case
TypeCode
.Decimal:
255
case
TypeCode
.DateTime:
257
case
TypeCode
.String:
260
case
TypeCode
.SByte:
262
case
TypeCode
.UInt16:
264
case
TypeCode
.UInt32:
266
case
TypeCode
.UInt64:
268
case
TypeCode
.Empty:
269
case
TypeCode
.DBNull:
270
case
TypeCode
.Object:
293
case
TypeCode
.Boolean:
295
case
TypeCode
.Char:
297
case
TypeCode
.Byte:
299
case
TypeCode
.Int16:
301
case
TypeCode
.Int32:
303
case
TypeCode
.Int64:
305
case
TypeCode
.Single:
307
case
TypeCode
.Double:
309
case
TypeCode
.Decimal:
311
case
TypeCode
.DateTime:
313
case
TypeCode
.String:
315
case
TypeCode
.SByte:
317
case
TypeCode
.UInt16:
319
case
TypeCode
.UInt32:
321
case
TypeCode
.UInt64:
323
case
TypeCode
.Empty:
324
case
TypeCode
.DBNull:
325
case
TypeCode
.Object:
System\Runtime\Serialization\XmlWriterDelegator.cs (36)
294
case
TypeCode
.Boolean:
297
case
TypeCode
.Char:
300
case
TypeCode
.Byte:
303
case
TypeCode
.Int16:
306
case
TypeCode
.Int32:
309
case
TypeCode
.Int64:
312
case
TypeCode
.Single:
315
case
TypeCode
.Double:
318
case
TypeCode
.Decimal:
321
case
TypeCode
.DateTime:
324
case
TypeCode
.String:
327
case
TypeCode
.SByte:
330
case
TypeCode
.UInt16:
333
case
TypeCode
.UInt32:
336
case
TypeCode
.UInt64:
339
case
TypeCode
.Empty:
340
case
TypeCode
.DBNull:
341
case
TypeCode
.Object:
371
case
TypeCode
.Boolean:
374
case
TypeCode
.Char:
377
case
TypeCode
.Byte:
380
case
TypeCode
.Int16:
383
case
TypeCode
.Int32:
386
case
TypeCode
.Int64:
389
case
TypeCode
.Single:
392
case
TypeCode
.Double:
395
case
TypeCode
.Decimal:
398
case
TypeCode
.DateTime:
401
case
TypeCode
.String:
404
case
TypeCode
.SByte:
407
case
TypeCode
.UInt16:
410
case
TypeCode
.UInt32:
413
case
TypeCode
.UInt64:
416
case
TypeCode
.Empty:
417
case
TypeCode
.DBNull:
418
case
TypeCode
.Object:
System.ServiceModel (146)
System\ServiceModel\Dispatcher\CodeGenerator.cs (89)
440
case
TypeCode
.Boolean:
443
case
TypeCode
.Char:
446
case
TypeCode
.SByte:
447
case
TypeCode
.Byte:
448
case
TypeCode
.Int16:
449
case
TypeCode
.UInt16:
452
case
TypeCode
.Int32:
455
case
TypeCode
.UInt32:
458
case
TypeCode
.String:
461
case
TypeCode
.UInt64:
462
case
TypeCode
.Int64:
463
case
TypeCode
.Single:
464
case
TypeCode
.Double:
465
case
TypeCode
.Object:
466
case
TypeCode
.Decimal:
467
case
TypeCode
.DateTime:
468
case
TypeCode
.Empty:
469
case
TypeCode
.DBNull:
925
OpCode GetConvOpCode(
TypeCode
typeCode)
929
case
TypeCode
.Boolean:
931
case
TypeCode
.Char:
933
case
TypeCode
.SByte:
935
case
TypeCode
.Byte:
937
case
TypeCode
.Int16:
939
case
TypeCode
.UInt16:
941
case
TypeCode
.Int32:
943
case
TypeCode
.UInt32:
945
case
TypeCode
.Int64:
947
case
TypeCode
.UInt64:
949
case
TypeCode
.Single:
951
case
TypeCode
.Double:
958
OpCode GetLdindOpCode(
TypeCode
typeCode)
962
case
TypeCode
.Boolean:
964
case
TypeCode
.Char:
966
case
TypeCode
.SByte:
968
case
TypeCode
.Byte:
970
case
TypeCode
.Int16:
972
case
TypeCode
.UInt16:
974
case
TypeCode
.Int32:
976
case
TypeCode
.UInt32:
978
case
TypeCode
.Int64:
980
case
TypeCode
.UInt64:
982
case
TypeCode
.Single:
984
case
TypeCode
.Double:
986
case
TypeCode
.String:
994
OpCode GetLdelemOpCode(
TypeCode
typeCode)
998
case
TypeCode
.Object:
1000
case
TypeCode
.Boolean:
1002
case
TypeCode
.Char:
1004
case
TypeCode
.SByte:
1006
case
TypeCode
.Byte:
1008
case
TypeCode
.Int16:
1010
case
TypeCode
.UInt16:
1012
case
TypeCode
.Int32:
1014
case
TypeCode
.UInt32:
1016
case
TypeCode
.Int64:
1018
case
TypeCode
.UInt64:
1020
case
TypeCode
.Single:
1022
case
TypeCode
.Double:
1024
case
TypeCode
.String:
1031
OpCode GetStelemOpCode(
TypeCode
typeCode)
1035
case
TypeCode
.Object:
1037
case
TypeCode
.Boolean:
1039
case
TypeCode
.Char:
1041
case
TypeCode
.SByte:
1043
case
TypeCode
.Byte:
1045
case
TypeCode
.Int16:
1047
case
TypeCode
.UInt16:
1049
case
TypeCode
.Int32:
1051
case
TypeCode
.UInt32:
1053
case
TypeCode
.Int64:
1055
case
TypeCode
.UInt64:
1057
case
TypeCode
.Single:
1059
case
TypeCode
.Double:
1061
case
TypeCode
.String:
1140
case
TypeCode
.Boolean:
1141
case
TypeCode
.Char:
1142
case
TypeCode
.SByte:
1143
case
TypeCode
.Byte:
1144
case
TypeCode
.Int16:
1145
case
TypeCode
.UInt16:
1146
case
TypeCode
.Int32:
1147
case
TypeCode
.UInt32:
1151
case
TypeCode
.Int64:
1152
case
TypeCode
.UInt64:
1157
case
TypeCode
.Single:
1161
case
TypeCode
.Double:
1165
case
TypeCode
.Decimal:
1166
case
TypeCode
.DateTime:
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (57)
250
case
TypeCode
.Boolean:
252
case
TypeCode
.DateTime:
254
case
TypeCode
.Decimal:
256
case
TypeCode
.Int32:
258
case
TypeCode
.Int64:
260
case
TypeCode
.Single:
262
case
TypeCode
.Double:
350
case
TypeCode
.Boolean:
351
case
TypeCode
.DateTime:
352
case
TypeCode
.Decimal:
353
case
TypeCode
.Double:
354
case
TypeCode
.Int32:
355
case
TypeCode
.Int64:
356
case
TypeCode
.Single:
357
case
TypeCode
.String:
359
case
TypeCode
.Object:
375
case
TypeCode
.Byte:
376
case
TypeCode
.Boolean:
377
case
TypeCode
.DateTime:
378
case
TypeCode
.Decimal:
379
case
TypeCode
.Int32:
380
case
TypeCode
.Int64:
381
case
TypeCode
.Single:
382
case
TypeCode
.Double:
671
TypeCode
typeCode;
715
case
TypeCode
.Byte:
718
case
TypeCode
.Boolean:
731
case
TypeCode
.DateTime:
744
case
TypeCode
.Decimal:
757
case
TypeCode
.Int32:
770
case
TypeCode
.Int64:
783
case
TypeCode
.Single:
796
case
TypeCode
.Double:
817
case
TypeCode
.Boolean:
820
case
TypeCode
.DateTime:
823
case
TypeCode
.Decimal:
826
case
TypeCode
.Double:
829
case
TypeCode
.Int32:
832
case
TypeCode
.Int64:
835
case
TypeCode
.Single:
838
case
TypeCode
.String:
853
case
TypeCode
.Byte:
859
case
TypeCode
.Boolean:
865
case
TypeCode
.DateTime:
871
case
TypeCode
.Decimal:
877
case
TypeCode
.Int32:
883
case
TypeCode
.Int64:
889
case
TypeCode
.Single:
895
case
TypeCode
.Double:
909
case
TypeCode
.Boolean:
912
case
TypeCode
.DateTime:
915
case
TypeCode
.Decimal:
918
case
TypeCode
.Double:
921
case
TypeCode
.Int32:
924
case
TypeCode
.Int64:
927
case
TypeCode
.Single:
930
case
TypeCode
.String:
System.ServiceModel.Internals (125)
System\Runtime\TypeHelper.cs (125)
163
TypeCode
sourceTypeCode = Type.GetTypeCode(source);
164
TypeCode
destinationTypeCode = Type.GetTypeCode(destination);
168
case
TypeCode
.SByte:
171
case
TypeCode
.Int16:
172
case
TypeCode
.Int32:
173
case
TypeCode
.Int64:
174
case
TypeCode
.Single:
175
case
TypeCode
.Double:
176
case
TypeCode
.Decimal:
180
case
TypeCode
.Byte:
183
case
TypeCode
.Int16:
184
case
TypeCode
.UInt16:
185
case
TypeCode
.Int32:
186
case
TypeCode
.UInt32:
187
case
TypeCode
.Int64:
188
case
TypeCode
.UInt64:
189
case
TypeCode
.Single:
190
case
TypeCode
.Double:
191
case
TypeCode
.Decimal:
195
case
TypeCode
.Int16:
198
case
TypeCode
.Int32:
199
case
TypeCode
.Int64:
200
case
TypeCode
.Single:
201
case
TypeCode
.Double:
202
case
TypeCode
.Decimal:
206
case
TypeCode
.UInt16:
209
case
TypeCode
.Int32:
210
case
TypeCode
.UInt32:
211
case
TypeCode
.Int64:
212
case
TypeCode
.UInt64:
213
case
TypeCode
.Single:
214
case
TypeCode
.Double:
215
case
TypeCode
.Decimal:
219
case
TypeCode
.Int32:
222
case
TypeCode
.Int64:
223
case
TypeCode
.Single:
224
case
TypeCode
.Double:
225
case
TypeCode
.Decimal:
229
case
TypeCode
.UInt32:
232
case
TypeCode
.UInt32:
233
case
TypeCode
.Int64:
234
case
TypeCode
.UInt64:
235
case
TypeCode
.Single:
236
case
TypeCode
.Double:
237
case
TypeCode
.Decimal:
241
case
TypeCode
.Int64:
242
case
TypeCode
.UInt64:
245
case
TypeCode
.Single:
246
case
TypeCode
.Double:
247
case
TypeCode
.Decimal:
251
case
TypeCode
.Char:
254
case
TypeCode
.UInt16:
255
case
TypeCode
.Int32:
256
case
TypeCode
.UInt32:
257
case
TypeCode
.Int64:
258
case
TypeCode
.UInt64:
259
case
TypeCode
.Single:
260
case
TypeCode
.Double:
261
case
TypeCode
.Decimal:
265
case
TypeCode
.Single:
266
return (destinationTypeCode ==
TypeCode
.Double);
313
TypeCode
sourceTypeCode = Type.GetTypeCode(source.GetType());
314
TypeCode
destinationTypeCode = Type.GetTypeCode(typeof(T));
318
case
TypeCode
.SByte:
323
case
TypeCode
.Int16:
326
case
TypeCode
.Int32:
329
case
TypeCode
.Int64:
332
case
TypeCode
.Single:
335
case
TypeCode
.Double:
338
case
TypeCode
.Decimal:
344
case
TypeCode
.Byte:
349
case
TypeCode
.Int16:
352
case
TypeCode
.UInt16:
355
case
TypeCode
.Int32:
358
case
TypeCode
.UInt32:
361
case
TypeCode
.Int64:
364
case
TypeCode
.UInt64:
367
case
TypeCode
.Single:
370
case
TypeCode
.Double:
373
case
TypeCode
.Decimal:
379
case
TypeCode
.Int16:
384
case
TypeCode
.Int32:
387
case
TypeCode
.Int64:
390
case
TypeCode
.Single:
393
case
TypeCode
.Double:
396
case
TypeCode
.Decimal:
402
case
TypeCode
.UInt16:
407
case
TypeCode
.Int32:
410
case
TypeCode
.UInt32:
413
case
TypeCode
.Int64:
416
case
TypeCode
.UInt64:
419
case
TypeCode
.Single:
422
case
TypeCode
.Double:
425
case
TypeCode
.Decimal:
431
case
TypeCode
.Int32:
436
case
TypeCode
.Int64:
439
case
TypeCode
.Single:
442
case
TypeCode
.Double:
445
case
TypeCode
.Decimal:
451
case
TypeCode
.UInt32:
456
case
TypeCode
.UInt32:
459
case
TypeCode
.Int64:
462
case
TypeCode
.UInt64:
465
case
TypeCode
.Single:
468
case
TypeCode
.Double:
471
case
TypeCode
.Decimal:
477
case
TypeCode
.Int64:
482
case
TypeCode
.Single:
485
case
TypeCode
.Double:
488
case
TypeCode
.Decimal:
494
case
TypeCode
.UInt64:
499
case
TypeCode
.Single:
502
case
TypeCode
.Double:
505
case
TypeCode
.Decimal:
511
case
TypeCode
.Char:
516
case
TypeCode
.UInt16:
519
case
TypeCode
.Int32:
522
case
TypeCode
.UInt32:
525
case
TypeCode
.Int64:
528
case
TypeCode
.UInt64:
531
case
TypeCode
.Single:
534
case
TypeCode
.Double:
537
case
TypeCode
.Decimal:
543
case
TypeCode
.Single:
545
if (destinationTypeCode ==
TypeCode
.Double)
System.ServiceModel.Web (45)
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (15)
56
case
TypeCode
.Byte:
57
case
TypeCode
.SByte:
58
case
TypeCode
.Int16:
59
case
TypeCode
.Int32:
60
case
TypeCode
.Int64:
61
case
TypeCode
.UInt16:
62
case
TypeCode
.UInt32:
63
case
TypeCode
.UInt64:
64
case
TypeCode
.Single:
65
case
TypeCode
.Double:
66
case
TypeCode
.Decimal:
67
case
TypeCode
.Boolean:
70
case
TypeCode
.Char:
71
case
TypeCode
.String:
72
case
TypeCode
.DateTime:
System\ServiceModel\Dispatcher\QueryStringConverter.cs (30)
77
case
TypeCode
.Byte:
79
case
TypeCode
.SByte:
81
case
TypeCode
.Int16:
83
case
TypeCode
.Int32:
94
case
TypeCode
.Int64:
96
case
TypeCode
.UInt16:
98
case
TypeCode
.UInt32:
100
case
TypeCode
.UInt64:
102
case
TypeCode
.Single:
104
case
TypeCode
.Double:
106
case
TypeCode
.Char:
108
case
TypeCode
.Decimal:
110
case
TypeCode
.Boolean:
112
case
TypeCode
.String:
114
case
TypeCode
.DateTime:
176
case
TypeCode
.Byte:
178
case
TypeCode
.SByte:
180
case
TypeCode
.Int16:
182
case
TypeCode
.Int32:
193
case
TypeCode
.Int64:
195
case
TypeCode
.UInt16:
197
case
TypeCode
.UInt32:
199
case
TypeCode
.UInt64:
201
case
TypeCode
.Single:
203
case
TypeCode
.Double:
205
case
TypeCode
.Char:
207
case
TypeCode
.Decimal:
209
case
TypeCode
.Boolean:
211
case
TypeCode
.String:
213
case
TypeCode
.DateTime:
System.Web (61)
UI\WebControls\ControlParameter.cs (1)
63
public ControlParameter(string name,
TypeCode
type, string controlID, string propertyName) : base(name, type) {
UI\WebControls\CookieParameter.cs (1)
51
public CookieParameter(string name,
TypeCode
type, string cookieName) : base(name, type) {
UI\WebControls\FormParameter.cs (1)
52
public FormParameter(string name,
TypeCode
type, string formField) : base(name, type) {
UI\WebControls\Parameter.cs (50)
69
public Parameter(string name,
TypeCode
type) {
78
public Parameter(string name,
TypeCode
type, string defaultValue) {
224
if (Type !=
TypeCode
.Empty) {
235
if (Type !=
TypeCode
.Empty) {
246
TypeCode
type = ConvertDbTypeToTypeCode(dbType);
284
internal static object GetValue(object value, string defaultValue,
TypeCode
type, bool convertEmptyStringToNull, bool ignoreNullableTypeChanges) {
286
if (type ==
TypeCode
.DBNull) {
295
if (type ==
TypeCode
.Object || type ==
TypeCode
.Empty) {
360
DefaultValue(
TypeCode
.Empty),
364
public
TypeCode
Type {
368
return
TypeCode
.Empty;
369
return (
TypeCode
)o;
372
if (value <
TypeCode
.Empty || value >
TypeCode
.String) {
439
public static
TypeCode
ConvertDbTypeToTypeCode(DbType dbType) {
445
return
TypeCode
.String;
447
return
TypeCode
.Boolean;
449
return
TypeCode
.Byte;
453
return
TypeCode
.Decimal;
458
return
TypeCode
.DateTime;
460
return
TypeCode
.Double;
462
return
TypeCode
.Int16;
464
return
TypeCode
.Int32;
466
return
TypeCode
.Int64;
468
return
TypeCode
.SByte;
470
return
TypeCode
.Single;
472
return
TypeCode
.UInt16;
474
return
TypeCode
.UInt32;
476
return
TypeCode
.UInt64;
482
return
TypeCode
.Object;
487
public static DbType ConvertTypeCodeToDbType(
TypeCode
typeCode) {
490
case
TypeCode
.Boolean:
492
case
TypeCode
.Byte:
494
case
TypeCode
.Char:
496
case
TypeCode
.DateTime: // Used for Date, DateTime and DateTime2 DbTypes
498
case
TypeCode
.Decimal:
500
case
TypeCode
.Double:
502
case
TypeCode
.Int16:
504
case
TypeCode
.Int32:
506
case
TypeCode
.Int64:
508
case
TypeCode
.SByte:
510
case
TypeCode
.Single:
512
case
TypeCode
.String:
514
case
TypeCode
.UInt16:
516
case
TypeCode
.UInt32:
518
case
TypeCode
.UInt64:
520
case
TypeCode
.DBNull:
521
case
TypeCode
.Empty:
522
case
TypeCode
.Object:
UI\WebControls\ParameterCollection.cs (2)
102
return ((IList)this).Add(new Parameter(name,
TypeCode
.Empty, value));
108
public int Add(string name,
TypeCode
type, string value) {
UI\WebControls\ProfileParameter.cs (1)
42
public ProfileParameter(string name,
TypeCode
type, string propertyName) : base(name, type) {
UI\WebControls\QueryStringParameter.cs (1)
52
public QueryStringParameter(string name,
TypeCode
type, string queryStringField) : base(name, type) {
UI\WebControls\RouteParameter.cs (1)
49
public RouteParameter(string name,
TypeCode
type, string routeKey) : base(name, type) {
UI\WebControls\SessionParameter.cs (1)
52
public SessionParameter(string name,
TypeCode
type, string sessionField) : base(name, type) {
UI\WebControls\SqlDataSourceView.cs (2)
1212
if (parameter.DbType != DbType.Object || (parameter.Type !=
TypeCode
.Empty && parameter.Type !=
TypeCode
.DBNull)) {
System.Web.DynamicData (25)
DynamicData\DataSourceUtil.cs (20)
14
private static Dictionary<Type,
TypeCode
> s_typeToTypeCodeMap;
16
internal static
TypeCode
TypeCodeFromType(Type type) {
22
Dictionary<Type,
TypeCode
> typeNameToTypeCode = new Dictionary<Type,
TypeCode
>();
23
typeNameToTypeCode[typeof(Boolean)] =
TypeCode
.Boolean;
24
typeNameToTypeCode[typeof(String)] =
TypeCode
.String;
25
typeNameToTypeCode[typeof(Byte)] =
TypeCode
.Byte;
26
typeNameToTypeCode[typeof(Int16)] =
TypeCode
.Int16;
27
typeNameToTypeCode[typeof(Int32)] =
TypeCode
.Int32;
28
typeNameToTypeCode[typeof(Int64)] =
TypeCode
.Int64;
29
typeNameToTypeCode[typeof(Single)] =
TypeCode
.Single;
30
typeNameToTypeCode[typeof(Double)] =
TypeCode
.Double;
31
typeNameToTypeCode[typeof(Decimal)] =
TypeCode
.Decimal;
32
typeNameToTypeCode[typeof(DateTime)] =
TypeCode
.DateTime;
33
typeNameToTypeCode[typeof(Char)] =
TypeCode
.Char;
37
typeNameToTypeCode[typeof(Object)] =
TypeCode
.DBNull;
40
typeNameToTypeCode[typeof(Byte[])] =
TypeCode
.DBNull;
43
typeNameToTypeCode[typeof(Guid)] =
TypeCode
.Object;
53
TypeCode
typeCode;
57
return
TypeCode
.Object;
DynamicData\IMetaColumn.cs (1)
44
TypeCode
TypeCode { get; }
DynamicData\MetaColumn.cs (4)
17
private
TypeCode
_typeCode =
TypeCode
.Empty;
379
public
TypeCode
TypeCode {
381
if (_typeCode ==
TypeCode
.Empty) {
System.Web.Entity (29)
System\Data\WebControls\EntityDataSourceUtil.cs (19)
314
internal static Type ConvertTypeCodeToType(
TypeCode
typeCode)
318
case
TypeCode
.Boolean:
321
case
TypeCode
.Byte:
324
case
TypeCode
.Char:
327
case
TypeCode
.DateTime:
330
case
TypeCode
.DBNull:
333
case
TypeCode
.Decimal:
336
case
TypeCode
.Double:
339
case
TypeCode
.Empty:
342
case
TypeCode
.Int16:
345
case
TypeCode
.Int32:
348
case
TypeCode
.Int64:
351
case
TypeCode
.Object:
354
case
TypeCode
.SByte:
357
case
TypeCode
.Single:
360
case
TypeCode
.String:
363
case
TypeCode
.UInt16:
366
case
TypeCode
.UInt32:
369
case
TypeCode
.UInt64:
System\Data\WebControls\EntityDataSourceView.cs (4)
1687
if (parameter.TypeCode ==
TypeCode
.DBNull)
1713
if (parameter.TypeCode ==
TypeCode
.String && parameter.ConvertEmptyStringToNull && String.IsNullOrEmpty(valueString))
1727
if (parameter.TypeCode ==
TypeCode
.Object || parameter.TypeCode ==
TypeCode
.Empty)
System\Data\WebControls\WebControlParameterProxy.cs (6)
74
internal
TypeCode
TypeCode
82
return
TypeCode
.Empty;
100
Debug.Assert(this.TypeCode !=
TypeCode
.Empty || this.DbType != DbType.Object, "Need to have TypeCode or DbType to get a ClrType");
101
if (this.TypeCode !=
TypeCode
.Empty)
151
if (parameter != null && parameter.Type ==
TypeCode
.Empty && parameter.DbType == DbType.Object)
156
if (parameter != null && parameter.DbType != DbType.Object && parameter.Type !=
TypeCode
.Empty)
System.Web.Extensions (94)
UI\WebControls\Dynamic.cs (94)
1340
case
TypeCode
.Char:
1341
case
TypeCode
.Single:
1342
case
TypeCode
.Double:
1343
case
TypeCode
.Decimal:
1345
case
TypeCode
.SByte:
1346
case
TypeCode
.Int16:
1347
case
TypeCode
.Int32:
1348
case
TypeCode
.Int64:
1350
case
TypeCode
.Byte:
1351
case
TypeCode
.UInt16:
1352
case
TypeCode
.UInt32:
1353
case
TypeCode
.UInt64:
1506
case
TypeCode
.Int32:
1507
case
TypeCode
.UInt32:
1508
case
TypeCode
.Int64:
1509
case
TypeCode
.UInt64:
1512
case
TypeCode
.Double:
1515
case
TypeCode
.String:
1533
case
TypeCode
.SByte:
1537
case
TypeCode
.Byte:
1541
case
TypeCode
.Int16:
1545
case
TypeCode
.UInt16:
1549
case
TypeCode
.Int32:
1553
case
TypeCode
.UInt32:
1557
case
TypeCode
.Int64:
1561
case
TypeCode
.UInt64:
1565
case
TypeCode
.Single:
1569
case
TypeCode
.Double:
1573
case
TypeCode
.Decimal:
1597
TypeCode
sc = st.IsEnum ?
TypeCode
.Object : Type.GetTypeCode(st);
1598
TypeCode
tc = tt.IsEnum ?
TypeCode
.Object : Type.GetTypeCode(tt);
1600
case
TypeCode
.SByte:
1602
case
TypeCode
.SByte:
1603
case
TypeCode
.Int16:
1604
case
TypeCode
.Int32:
1605
case
TypeCode
.Int64:
1606
case
TypeCode
.Single:
1607
case
TypeCode
.Double:
1608
case
TypeCode
.Decimal:
1612
case
TypeCode
.Byte:
1614
case
TypeCode
.Byte:
1615
case
TypeCode
.Int16:
1616
case
TypeCode
.UInt16:
1617
case
TypeCode
.Int32:
1618
case
TypeCode
.UInt32:
1619
case
TypeCode
.Int64:
1620
case
TypeCode
.UInt64:
1621
case
TypeCode
.Single:
1622
case
TypeCode
.Double:
1623
case
TypeCode
.Decimal:
1627
case
TypeCode
.Int16:
1629
case
TypeCode
.Int16:
1630
case
TypeCode
.Int32:
1631
case
TypeCode
.Int64:
1632
case
TypeCode
.Single:
1633
case
TypeCode
.Double:
1634
case
TypeCode
.Decimal:
1638
case
TypeCode
.UInt16:
1640
case
TypeCode
.UInt16:
1641
case
TypeCode
.Int32:
1642
case
TypeCode
.UInt32:
1643
case
TypeCode
.Int64:
1644
case
TypeCode
.UInt64:
1645
case
TypeCode
.Single:
1646
case
TypeCode
.Double:
1647
case
TypeCode
.Decimal:
1651
case
TypeCode
.Int32:
1653
case
TypeCode
.Int32:
1654
case
TypeCode
.Int64:
1655
case
TypeCode
.Single:
1656
case
TypeCode
.Double:
1657
case
TypeCode
.Decimal:
1661
case
TypeCode
.UInt32:
1663
case
TypeCode
.UInt32:
1664
case
TypeCode
.Int64:
1665
case
TypeCode
.UInt64:
1666
case
TypeCode
.Single:
1667
case
TypeCode
.Double:
1668
case
TypeCode
.Decimal:
1672
case
TypeCode
.Int64:
1674
case
TypeCode
.Int64:
1675
case
TypeCode
.Single:
1676
case
TypeCode
.Double:
1677
case
TypeCode
.Decimal:
1681
case
TypeCode
.UInt64:
1683
case
TypeCode
.UInt64:
1684
case
TypeCode
.Single:
1685
case
TypeCode
.Double:
1686
case
TypeCode
.Decimal:
1690
case
TypeCode
.Single:
1692
case
TypeCode
.Single:
1693
case
TypeCode
.Double:
System.Workflow.Activities (336)
Rules\Expressions.cs (26)
810
TypeCode
tc = Type.GetTypeCode(lhsValue.GetType());
814
case
TypeCode
.Decimal:
818
case
TypeCode
.Double:
822
case
TypeCode
.Single:
826
case
TypeCode
.Int32:
830
case
TypeCode
.Int64:
2129
case
TypeCode
.SByte:
2130
case
TypeCode
.Byte:
2131
case
TypeCode
.Int16:
2132
case
TypeCode
.UInt16:
2133
case
TypeCode
.Int32:
2134
case
TypeCode
.UInt32:
2135
case
TypeCode
.Int64:
2136
case
TypeCode
.UInt64:
2137
case
TypeCode
.Char:
2138
case
TypeCode
.Single:
2139
case
TypeCode
.Double:
2140
case
TypeCode
.Decimal:
2747
TypeCode
argTypeCode = Type.GetTypeCode(argType);
2752
case
TypeCode
.Byte:
2753
case
TypeCode
.Char:
2754
case
TypeCode
.Int16:
2755
case
TypeCode
.Int32:
2756
case
TypeCode
.Int64:
2757
case
TypeCode
.SByte:
2758
case
TypeCode
.UInt16:
Rules\RuleValidation.cs (310)
1627
TypeCode
sourceTypeCode = (ConditionHelper.IsNullableValueType(sourceType))
1630
TypeCode
testTypeCode = (ConditionHelper.IsNullableValueType(testType))
1636
case
TypeCode
.SByte:
1639
case
TypeCode
.SByte:
1640
case
TypeCode
.Byte:
1641
case
TypeCode
.UInt16:
1642
case
TypeCode
.UInt32:
1643
case
TypeCode
.UInt64:
1644
case
TypeCode
.Char:
1646
case
TypeCode
.Int16:
1647
case
TypeCode
.Int32:
1648
case
TypeCode
.Int64:
1649
case
TypeCode
.Single:
1650
case
TypeCode
.Double:
1651
case
TypeCode
.Decimal:
1656
case
TypeCode
.Byte:
1659
case
TypeCode
.Byte:
1660
case
TypeCode
.SByte:
1661
case
TypeCode
.Char:
1663
case
TypeCode
.Int16:
1664
case
TypeCode
.UInt16:
1665
case
TypeCode
.Int32:
1666
case
TypeCode
.UInt32:
1667
case
TypeCode
.Int64:
1668
case
TypeCode
.UInt64:
1669
case
TypeCode
.Single:
1670
case
TypeCode
.Double:
1671
case
TypeCode
.Decimal:
1676
case
TypeCode
.Int16:
1679
case
TypeCode
.SByte:
1680
case
TypeCode
.Byte:
1681
case
TypeCode
.UInt16:
1682
case
TypeCode
.UInt32:
1683
case
TypeCode
.UInt64:
1684
case
TypeCode
.Char:
1686
case
TypeCode
.Int16:
1687
case
TypeCode
.Int32:
1688
case
TypeCode
.Int64:
1689
case
TypeCode
.Single:
1690
case
TypeCode
.Double:
1691
case
TypeCode
.Decimal:
1696
case
TypeCode
.UInt16:
1699
case
TypeCode
.SByte:
1700
case
TypeCode
.Byte:
1701
case
TypeCode
.Int16:
1702
case
TypeCode
.UInt16:
1703
case
TypeCode
.Char:
1705
case
TypeCode
.Int32:
1706
case
TypeCode
.UInt32:
1707
case
TypeCode
.Int64:
1708
case
TypeCode
.UInt64:
1709
case
TypeCode
.Single:
1710
case
TypeCode
.Double:
1711
case
TypeCode
.Decimal:
1716
case
TypeCode
.Int32:
1719
case
TypeCode
.SByte:
1720
case
TypeCode
.Byte:
1721
case
TypeCode
.Int16:
1722
case
TypeCode
.UInt16:
1723
case
TypeCode
.Int32:
1724
case
TypeCode
.UInt32:
1725
case
TypeCode
.UInt64:
1726
case
TypeCode
.Char:
1728
case
TypeCode
.Int64:
1729
case
TypeCode
.Single:
1730
case
TypeCode
.Double:
1731
case
TypeCode
.Decimal:
1736
case
TypeCode
.UInt32:
1739
case
TypeCode
.SByte:
1740
case
TypeCode
.Byte:
1741
case
TypeCode
.Int16:
1742
case
TypeCode
.UInt16:
1743
case
TypeCode
.Int32:
1744
case
TypeCode
.UInt32:
1745
case
TypeCode
.Char:
1747
case
TypeCode
.Int64:
1748
case
TypeCode
.UInt64:
1749
case
TypeCode
.Single:
1750
case
TypeCode
.Double:
1751
case
TypeCode
.Decimal:
1756
case
TypeCode
.Int64:
1759
case
TypeCode
.SByte:
1760
case
TypeCode
.Byte:
1761
case
TypeCode
.Int16:
1762
case
TypeCode
.UInt16:
1763
case
TypeCode
.Int32:
1764
case
TypeCode
.UInt32:
1765
case
TypeCode
.Int64:
1766
case
TypeCode
.UInt64:
1767
case
TypeCode
.Char:
1769
case
TypeCode
.Single:
1770
case
TypeCode
.Double:
1771
case
TypeCode
.Decimal:
1776
case
TypeCode
.UInt64:
1779
case
TypeCode
.SByte:
1780
case
TypeCode
.Byte:
1781
case
TypeCode
.Int16:
1782
case
TypeCode
.UInt16:
1783
case
TypeCode
.Int32:
1784
case
TypeCode
.UInt32:
1785
case
TypeCode
.Int64:
1786
case
TypeCode
.UInt64:
1787
case
TypeCode
.Char:
1789
case
TypeCode
.Single:
1790
case
TypeCode
.Double:
1791
case
TypeCode
.Decimal:
1796
case
TypeCode
.Char:
1799
case
TypeCode
.Char:
1800
case
TypeCode
.SByte:
1801
case
TypeCode
.Byte:
1802
case
TypeCode
.Int16:
1804
case
TypeCode
.UInt16:
1805
case
TypeCode
.Int32:
1806
case
TypeCode
.UInt32:
1807
case
TypeCode
.Int64:
1808
case
TypeCode
.UInt64:
1809
case
TypeCode
.Single:
1810
case
TypeCode
.Double:
1811
case
TypeCode
.Decimal:
1816
case
TypeCode
.Single:
1819
case
TypeCode
.SByte:
1820
case
TypeCode
.Byte:
1821
case
TypeCode
.Int16:
1822
case
TypeCode
.UInt16:
1823
case
TypeCode
.Int32:
1824
case
TypeCode
.UInt32:
1825
case
TypeCode
.Int64:
1826
case
TypeCode
.UInt64:
1827
case
TypeCode
.Char:
1828
case
TypeCode
.Single:
1829
case
TypeCode
.Decimal:
1831
case
TypeCode
.Double:
1836
case
TypeCode
.Double:
1839
case
TypeCode
.SByte:
1840
case
TypeCode
.Byte:
1841
case
TypeCode
.Int16:
1842
case
TypeCode
.UInt16:
1843
case
TypeCode
.Int32:
1844
case
TypeCode
.UInt32:
1845
case
TypeCode
.Int64:
1846
case
TypeCode
.UInt64:
1847
case
TypeCode
.Char:
1848
case
TypeCode
.Single:
1849
case
TypeCode
.Double:
1850
case
TypeCode
.Decimal:
1855
case
TypeCode
.Decimal:
1858
case
TypeCode
.SByte:
1859
case
TypeCode
.Byte:
1860
case
TypeCode
.Int16:
1861
case
TypeCode
.UInt16:
1862
case
TypeCode
.Int32:
1863
case
TypeCode
.UInt32:
1864
case
TypeCode
.Int64:
1865
case
TypeCode
.UInt64:
1866
case
TypeCode
.Char:
1867
case
TypeCode
.Single:
1868
case
TypeCode
.Double:
1869
case
TypeCode
.Decimal:
1957
case
TypeCode
.SByte:
1959
case
TypeCode
.Byte:
1961
case
TypeCode
.Int16:
1963
case
TypeCode
.UInt16:
1965
case
TypeCode
.Int32:
1967
case
TypeCode
.UInt32:
1969
case
TypeCode
.Int64:
1971
case
TypeCode
.UInt64:
1973
case
TypeCode
.Char:
1988
TypeCode
lhsTypeCode = Type.GetTypeCode(lhsType);
1989
TypeCode
rhsTypeCode = Type.GetTypeCode(rhsType);
1993
case
TypeCode
.Decimal:
1996
case
TypeCode
.SByte:
1997
case
TypeCode
.Byte:
1998
case
TypeCode
.Int16:
1999
case
TypeCode
.UInt16:
2000
case
TypeCode
.Int32:
2001
case
TypeCode
.UInt32:
2002
case
TypeCode
.Int64:
2003
case
TypeCode
.UInt64:
2004
case
TypeCode
.Decimal:
2005
case
TypeCode
.Char:
2010
case
TypeCode
.Double:
2013
case
TypeCode
.SByte:
2014
case
TypeCode
.Byte:
2015
case
TypeCode
.Int16:
2016
case
TypeCode
.UInt16:
2017
case
TypeCode
.Int32:
2018
case
TypeCode
.UInt32:
2019
case
TypeCode
.Int64:
2020
case
TypeCode
.UInt64:
2021
case
TypeCode
.Single:
2022
case
TypeCode
.Double:
2023
case
TypeCode
.Char:
2028
case
TypeCode
.Single:
2031
case
TypeCode
.SByte:
2032
case
TypeCode
.Byte:
2033
case
TypeCode
.Int16:
2034
case
TypeCode
.UInt16:
2035
case
TypeCode
.Int32:
2036
case
TypeCode
.UInt32:
2037
case
TypeCode
.Int64:
2038
case
TypeCode
.UInt64:
2039
case
TypeCode
.Single:
2040
case
TypeCode
.Char:
2045
case
TypeCode
.Char:
2048
case
TypeCode
.Char:
2050
case
TypeCode
.SByte:
2051
case
TypeCode
.Byte:
2052
case
TypeCode
.Int16:
2053
case
TypeCode
.UInt16:
2054
case
TypeCode
.Int32:
2055
case
TypeCode
.UInt32:
2056
case
TypeCode
.Int64:
2057
case
TypeCode
.UInt64:
2063
case
TypeCode
.SByte:
2066
case
TypeCode
.SByte:
2068
case
TypeCode
.Byte:
2069
case
TypeCode
.Int16:
2070
case
TypeCode
.UInt16:
2071
case
TypeCode
.Int32:
2072
case
TypeCode
.UInt32:
2073
case
TypeCode
.Int64:
2074
case
TypeCode
.UInt64:
2075
case
TypeCode
.Char:
2081
case
TypeCode
.Byte:
2084
case
TypeCode
.Byte:
2086
case
TypeCode
.SByte:
2087
case
TypeCode
.Int16:
2088
case
TypeCode
.UInt16:
2089
case
TypeCode
.Int32:
2090
case
TypeCode
.UInt32:
2091
case
TypeCode
.Int64:
2092
case
TypeCode
.UInt64:
2093
case
TypeCode
.Char:
2099
case
TypeCode
.Int16:
2102
case
TypeCode
.SByte:
2103
case
TypeCode
.Byte:
2104
case
TypeCode
.Int16:
2106
case
TypeCode
.UInt16:
2107
case
TypeCode
.Int32:
2108
case
TypeCode
.UInt32:
2109
case
TypeCode
.Int64:
2110
case
TypeCode
.UInt64:
2111
case
TypeCode
.Char:
2117
case
TypeCode
.Int32:
2120
case
TypeCode
.SByte:
2121
case
TypeCode
.Byte:
2122
case
TypeCode
.Int16:
2123
case
TypeCode
.UInt16:
2124
case
TypeCode
.Int32:
2125
case
TypeCode
.Char:
2127
case
TypeCode
.UInt32:
2128
case
TypeCode
.Int64:
2129
case
TypeCode
.UInt64:
2135
case
TypeCode
.Int64:
2138
case
TypeCode
.SByte:
2139
case
TypeCode
.Byte:
2140
case
TypeCode
.Int16:
2141
case
TypeCode
.UInt16:
2142
case
TypeCode
.Int32:
2143
case
TypeCode
.UInt32:
2144
case
TypeCode
.Int64:
2145
case
TypeCode
.Char:
2147
case
TypeCode
.UInt64:
2153
case
TypeCode
.UInt16:
2156
case
TypeCode
.Byte:
2157
case
TypeCode
.UInt16:
2158
case
TypeCode
.Char:
2160
case
TypeCode
.SByte:
2161
case
TypeCode
.Int16:
2162
case
TypeCode
.Int32:
2163
case
TypeCode
.UInt32:
2164
case
TypeCode
.Int64:
2165
case
TypeCode
.UInt64:
2171
case
TypeCode
.UInt32:
2174
case
TypeCode
.Byte:
2175
case
TypeCode
.UInt16:
2176
case
TypeCode
.UInt32:
2177
case
TypeCode
.Char:
2179
case
TypeCode
.SByte:
2180
case
TypeCode
.Int16:
2181
case
TypeCode
.Int32:
2182
case
TypeCode
.Int64:
2183
case
TypeCode
.UInt64:
2189
case
TypeCode
.UInt64:
2192
case
TypeCode
.Byte:
2193
case
TypeCode
.UInt16:
2194
case
TypeCode
.UInt32:
2195
case
TypeCode
.UInt64:
2196
case
TypeCode
.Char:
2198
case
TypeCode
.SByte:
2199
case
TypeCode
.Int16:
2200
case
TypeCode
.Int32:
2201
case
TypeCode
.Int64:
2617
TypeCode
tc1 = Type.GetTypeCode(t1);
2618
TypeCode
tc2 = Type.GetTypeCode(t2);
2622
case
TypeCode
.SByte:
2625
case
TypeCode
.Byte:
2626
case
TypeCode
.UInt16:
2627
case
TypeCode
.UInt32:
2628
case
TypeCode
.UInt64:
2634
case
TypeCode
.Int16:
2637
case
TypeCode
.UInt16:
2638
case
TypeCode
.UInt32:
2639
case
TypeCode
.UInt64:
2645
case
TypeCode
.Int32:
2646
if (tc2 ==
TypeCode
.UInt32 || tc2 ==
TypeCode
.UInt64)
2653
case
TypeCode
.Int64:
2654
if (tc2 ==
TypeCode
.UInt64)
2661
case
TypeCode
.Object:
System.Workflow.ComponentModel (14)
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (14)
583
case
TypeCode
.Boolean:
586
case
TypeCode
.Byte:
589
case
TypeCode
.Char:
592
case
TypeCode
.DateTime:
595
case
TypeCode
.Decimal:
598
case
TypeCode
.Double:
601
case
TypeCode
.Int16:
604
case
TypeCode
.Int32:
607
case
TypeCode
.Int64:
610
case
TypeCode
.SByte:
613
case
TypeCode
.Single:
616
case
TypeCode
.UInt16:
619
case
TypeCode
.UInt32:
622
case
TypeCode
.UInt64:
System.Xml (159)
System\Xml\Schema\XmlAtomicValue.cs (46)
23
private
TypeCode
clrType;
72
this.clrType =
TypeCode
.Boolean;
79
this.clrType =
TypeCode
.DateTime;
86
this.clrType =
TypeCode
.Double;
93
this.clrType =
TypeCode
.Int32;
100
this.clrType =
TypeCode
.Int64;
185
case
TypeCode
.Boolean: return valueConverter.ChangeType(this.unionVal.boolVal, ValueType);
186
case
TypeCode
.Int32: return valueConverter.ChangeType(this.unionVal.i32Val, ValueType);
187
case
TypeCode
.Int64: return valueConverter.ChangeType(this.unionVal.i64Val, ValueType);
188
case
TypeCode
.Double: return valueConverter.ChangeType(this.unionVal.dblVal, ValueType);
189
case
TypeCode
.DateTime: return valueConverter.ChangeType(this.unionVal.dtVal, ValueType);
203
case
TypeCode
.Boolean: return this.unionVal.boolVal;
204
case
TypeCode
.Int32: return valueConverter.ToBoolean(this.unionVal.i32Val);
205
case
TypeCode
.Int64: return valueConverter.ToBoolean(this.unionVal.i64Val);
206
case
TypeCode
.Double: return valueConverter.ToBoolean(this.unionVal.dblVal);
207
case
TypeCode
.DateTime: return valueConverter.ToBoolean(this.unionVal.dtVal);
222
case
TypeCode
.Boolean: return valueConverter.ToDateTime(this.unionVal.boolVal);
223
case
TypeCode
.Int32: return valueConverter.ToDateTime(this.unionVal.i32Val);
224
case
TypeCode
.Int64: return valueConverter.ToDateTime(this.unionVal.i64Val);
225
case
TypeCode
.Double: return valueConverter.ToDateTime(this.unionVal.dblVal);
226
case
TypeCode
.DateTime: return this.unionVal.dtVal;
242
case
TypeCode
.Boolean: return valueConverter.ToDouble(this.unionVal.boolVal);
243
case
TypeCode
.Int32: return valueConverter.ToDouble(this.unionVal.i32Val);
244
case
TypeCode
.Int64: return valueConverter.ToDouble(this.unionVal.i64Val);
245
case
TypeCode
.Double: return this.unionVal.dblVal;
246
case
TypeCode
.DateTime: return valueConverter.ToDouble(this.unionVal.dtVal);
261
case
TypeCode
.Boolean: return valueConverter.ToInt32(this.unionVal.boolVal);
262
case
TypeCode
.Int32: return this.unionVal.i32Val;
263
case
TypeCode
.Int64: return valueConverter.ToInt32(this.unionVal.i64Val);
264
case
TypeCode
.Double: return valueConverter.ToInt32(this.unionVal.dblVal);
265
case
TypeCode
.DateTime: return valueConverter.ToInt32(this.unionVal.dtVal);
280
case
TypeCode
.Boolean: return valueConverter.ToInt64(this.unionVal.boolVal);
281
case
TypeCode
.Int32: return valueConverter.ToInt64(this.unionVal.i32Val);
282
case
TypeCode
.Int64: return this.unionVal.i64Val;
283
case
TypeCode
.Double: return valueConverter.ToInt64(this.unionVal.dblVal);
284
case
TypeCode
.DateTime: return valueConverter.ToInt64(this.unionVal.dtVal);
301
case
TypeCode
.Boolean: return valueConverter.ChangeType(this.unionVal.boolVal, type);
302
case
TypeCode
.Int32: return valueConverter.ChangeType(this.unionVal.i32Val, type);
303
case
TypeCode
.Int64: return valueConverter.ChangeType(this.unionVal.i64Val, type);
304
case
TypeCode
.Double: return valueConverter.ChangeType(this.unionVal.dblVal, type);
305
case
TypeCode
.DateTime: return valueConverter.ChangeType(this.unionVal.dtVal, type);
319
case
TypeCode
.Boolean: return valueConverter.ToString(this.unionVal.boolVal);
320
case
TypeCode
.Int32: return valueConverter.ToString(this.unionVal.i32Val);
321
case
TypeCode
.Int64: return valueConverter.ToString(this.unionVal.i64Val);
322
case
TypeCode
.Double: return valueConverter.ToString(this.unionVal.dblVal);
323
case
TypeCode
.DateTime: return valueConverter.ToString(this.unionVal.dtVal);
System\Xml\Serialization\CodeGenerator.cs (22)
960
OpCode GetLdindOpCode(
TypeCode
typeCode) {
1054
case
TypeCode
.Boolean:
1057
case
TypeCode
.Char:
1060
case
TypeCode
.SByte:
1061
case
TypeCode
.Byte:
1062
case
TypeCode
.Int16:
1063
case
TypeCode
.UInt16:
1066
case
TypeCode
.Int32:
1069
case
TypeCode
.UInt32:
1072
case
TypeCode
.UInt64:
1075
case
TypeCode
.Int64:
1078
case
TypeCode
.Single:
1081
case
TypeCode
.Double:
1084
case
TypeCode
.String:
1087
case
TypeCode
.Decimal:
1102
case
TypeCode
.DateTime:
1112
case
TypeCode
.Object:
1113
case
TypeCode
.Empty:
1114
case
TypeCode
.DBNull:
1395
OpCode GetLdelemOpCode(
TypeCode
typeCode) {
1472
OpCode GetStelemOpCode(
TypeCode
typeCode) {
1647
OpCode GetConvOpCode(
TypeCode
typeCode) {
System\Xml\Serialization\Types.cs (15)
510
case
TypeCode
.String: return true;
511
case
TypeCode
.Int32: return true;
512
case
TypeCode
.Boolean: return true;
513
case
TypeCode
.Int16: return true;
514
case
TypeCode
.Int64: return true;
515
case
TypeCode
.Single: return true;
516
case
TypeCode
.Double: return true;
517
case
TypeCode
.Decimal: return true;
518
case
TypeCode
.DateTime: return true;
519
case
TypeCode
.Byte: return true;
520
case
TypeCode
.SByte: return true;
521
case
TypeCode
.UInt16: return true;
522
case
TypeCode
.UInt32: return true;
523
case
TypeCode
.UInt64: return true;
524
case
TypeCode
.Char: return true;
System\Xml\Serialization\XmlSerializationWriter.cs (46)
181
case
TypeCode
.String: typeName = "string"; break;
182
case
TypeCode
.Int32: typeName = "int"; break;
183
case
TypeCode
.Boolean: typeName = "boolean"; break;
184
case
TypeCode
.Int16: typeName = "short"; break;
185
case
TypeCode
.Int64: typeName = "long"; break;
186
case
TypeCode
.Single: typeName = "float"; break;
187
case
TypeCode
.Double: typeName = "double"; break;
188
case
TypeCode
.Decimal: typeName = "decimal"; break;
189
case
TypeCode
.DateTime: typeName = "dateTime"; break;
190
case
TypeCode
.Byte: typeName = "unsignedByte"; break;
191
case
TypeCode
.SByte: typeName = "byte"; break;
192
case
TypeCode
.UInt16: typeName = "unsignedShort"; break;
193
case
TypeCode
.UInt32: typeName = "unsignedInt"; break;
194
case
TypeCode
.UInt64: typeName = "unsignedLong"; break;
195
case
TypeCode
.Char:
229
case
TypeCode
.String:
234
case
TypeCode
.Int32:
238
case
TypeCode
.Boolean:
242
case
TypeCode
.Int16:
246
case
TypeCode
.Int64:
250
case
TypeCode
.Single:
254
case
TypeCode
.Double:
258
case
TypeCode
.Decimal:
262
case
TypeCode
.DateTime:
266
case
TypeCode
.Char:
271
case
TypeCode
.Byte:
275
case
TypeCode
.SByte:
279
case
TypeCode
.UInt16:
283
case
TypeCode
.UInt32:
287
case
TypeCode
.UInt64:
1180
if (Convert.GetTypeCode(o) ==
TypeCode
.Object && !(o is Guid) && (t != typeof(XmlQualifiedName)) && !(o is XmlNode[]) && (t != typeof(byte[]))) {
3063
case
TypeCode
.String:
3069
case
TypeCode
.Char:
3080
case
TypeCode
.Int32:
3083
case
TypeCode
.Double:
3086
case
TypeCode
.Boolean:
3089
case
TypeCode
.Int16:
3090
case
TypeCode
.Int64:
3091
case
TypeCode
.UInt16:
3092
case
TypeCode
.UInt32:
3093
case
TypeCode
.UInt64:
3094
case
TypeCode
.Byte:
3095
case
TypeCode
.SByte:
3103
case
TypeCode
.Single:
3107
case
TypeCode
.Decimal:
3111
case
TypeCode
.DateTime:
System\Xml\Serialization\XmlSerializer.cs (30)
740
case
TypeCode
.String:
743
case
TypeCode
.Int32:
746
case
TypeCode
.Boolean:
749
case
TypeCode
.Int16:
752
case
TypeCode
.Int64:
755
case
TypeCode
.Single:
758
case
TypeCode
.Double:
761
case
TypeCode
.Decimal:
764
case
TypeCode
.DateTime:
767
case
TypeCode
.Char:
770
case
TypeCode
.Byte:
773
case
TypeCode
.SByte:
776
case
TypeCode
.UInt16:
779
case
TypeCode
.UInt32:
782
case
TypeCode
.UInt64:
811
case
TypeCode
.String:
814
case
TypeCode
.Int32:
817
case
TypeCode
.Boolean:
820
case
TypeCode
.Int16:
823
case
TypeCode
.Int64:
826
case
TypeCode
.Single:
829
case
TypeCode
.Double:
832
case
TypeCode
.Decimal:
835
case
TypeCode
.DateTime:
838
case
TypeCode
.Char:
841
case
TypeCode
.Byte:
844
case
TypeCode
.SByte:
847
case
TypeCode
.UInt16:
850
case
TypeCode
.UInt32:
853
case
TypeCode
.UInt64: