292 references to InternalPrimitiveTypeE
mscorlib (292)
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (30)
62
InternalPrimitiveTypeE
primitiveTypeEnum = objectWriter.ToCode(type);
65
case
InternalPrimitiveTypeE
.Invalid:
123
InternalPrimitiveTypeE
primitiveTypeEnum = Converter.ToCode(type);
126
case
InternalPrimitiveTypeE
.Invalid:
155
sout.WriteByte((Byte)((
InternalPrimitiveTypeE
)typeInformation));
188
var = (
InternalPrimitiveTypeE
)input.ReadByte();
216
out
InternalPrimitiveTypeE
primitiveTypeEnum,
224
primitiveTypeEnum =
InternalPrimitiveTypeE
.Invalid;
231
primitiveTypeEnum = (
InternalPrimitiveTypeE
)typeInformation;
253
primitiveTypeEnum = (
InternalPrimitiveTypeE
)typeInformation;
309
sout.WriteByte((Byte)
InternalPrimitiveTypeE
.Null);
312
sout.WriteByte((Byte)
InternalPrimitiveTypeE
.String);
320
sout.WriteByte((Byte)
InternalPrimitiveTypeE
.Null);
325
InternalPrimitiveTypeE
code = Converter.ToCode(type);
333
InternalPrimitiveTypeE
code = (
InternalPrimitiveTypeE
)input.ReadByte();
334
if (code ==
InternalPrimitiveTypeE
.Null)
336
else if (code ==
InternalPrimitiveTypeE
.String)
682
bool isArgPrimitive = Converter.ToCode(argTypes[i]) !=
InternalPrimitiveTypeE
.Invalid;
950
bool isArgPrimitive = Converter.ToCode(argTypes[i]) !=
InternalPrimitiveTypeE
.Invalid;
976
bool isReturnTypePrimitive = Converter.ToCode(returnType) !=
InternalPrimitiveTypeE
.Invalid;
1315
internal
InternalPrimitiveTypeE
primitiveTypeEnum;
1322
internal void Set(
InternalPrimitiveTypeE
primitiveTypeEnum, Object value)
1340
primitiveTypeEnum = (
InternalPrimitiveTypeE
)input.ReadByte(); //PDJ
1673
sout.WriteByte((Byte)((
InternalPrimitiveTypeE
)typeInformation));
1719
typeInformation = (
InternalPrimitiveTypeE
)input.ReadByte();
1832
internal
InternalPrimitiveTypeE
typeInformation;
1839
internal void Set(
InternalPrimitiveTypeE
typeInformation, Object value)
1846
internal void Set(
InternalPrimitiveTypeE
typeInformation)
2131
InternalPrimitiveTypeE
primitiveTypeEnum;
system\runtime\serialization\formatters\binary\binaryconverter.cs (171)
40
internal static
InternalPrimitiveTypeE
ToCode(Type type)
43
InternalPrimitiveTypeE
code;
48
code =
InternalPrimitiveTypeE
.DateTime;
50
code =
InternalPrimitiveTypeE
.TimeSpan;
52
code =
InternalPrimitiveTypeE
.Decimal;
54
code =
InternalPrimitiveTypeE
.Invalid;
66
internal static bool IsWriteAsByteArray(
InternalPrimitiveTypeE
code)
72
case
InternalPrimitiveTypeE
.Boolean:
73
case
InternalPrimitiveTypeE
.Char:
74
case
InternalPrimitiveTypeE
.Byte:
75
case
InternalPrimitiveTypeE
.Double:
76
case
InternalPrimitiveTypeE
.Int16:
77
case
InternalPrimitiveTypeE
.Int32:
78
case
InternalPrimitiveTypeE
.Int64:
79
case
InternalPrimitiveTypeE
.SByte:
80
case
InternalPrimitiveTypeE
.Single:
81
case
InternalPrimitiveTypeE
.UInt16:
82
case
InternalPrimitiveTypeE
.UInt32:
83
case
InternalPrimitiveTypeE
.UInt64:
90
internal static int TypeLength(
InternalPrimitiveTypeE
code)
96
case
InternalPrimitiveTypeE
.Boolean:
99
case
InternalPrimitiveTypeE
.Char:
102
case
InternalPrimitiveTypeE
.Byte:
105
case
InternalPrimitiveTypeE
.Double:
108
case
InternalPrimitiveTypeE
.Int16:
111
case
InternalPrimitiveTypeE
.Int32:
114
case
InternalPrimitiveTypeE
.Int64:
117
case
InternalPrimitiveTypeE
.SByte:
120
case
InternalPrimitiveTypeE
.Single:
123
case
InternalPrimitiveTypeE
.UInt16:
126
case
InternalPrimitiveTypeE
.UInt32:
129
case
InternalPrimitiveTypeE
.UInt64:
137
internal static InternalNameSpaceE GetNameSpaceEnum(
InternalPrimitiveTypeE
code, Type type, WriteObjectInfo objectInfo, out String typeName)
143
if (code !=
InternalPrimitiveTypeE
.Invalid)
147
case
InternalPrimitiveTypeE
.Boolean:
148
case
InternalPrimitiveTypeE
.Char:
149
case
InternalPrimitiveTypeE
.Byte:
150
case
InternalPrimitiveTypeE
.Double:
151
case
InternalPrimitiveTypeE
.Int16:
152
case
InternalPrimitiveTypeE
.Int32:
153
case
InternalPrimitiveTypeE
.Int64:
154
case
InternalPrimitiveTypeE
.SByte:
155
case
InternalPrimitiveTypeE
.Single:
156
case
InternalPrimitiveTypeE
.UInt16:
157
case
InternalPrimitiveTypeE
.UInt32:
158
case
InternalPrimitiveTypeE
.UInt64:
159
case
InternalPrimitiveTypeE
.DateTime:
160
case
InternalPrimitiveTypeE
.TimeSpan:
165
case
InternalPrimitiveTypeE
.Decimal:
203
internal static Type ToArrayType(
InternalPrimitiveTypeE
code)
218
typeATemp[(int)
InternalPrimitiveTypeE
.Invalid] = null;
219
typeATemp[(int)
InternalPrimitiveTypeE
.Boolean] = typeofBoolean;
220
typeATemp[(int)
InternalPrimitiveTypeE
.Byte] = typeofByte;
221
typeATemp[(int)
InternalPrimitiveTypeE
.Char] = typeofChar;
222
typeATemp[(int)
InternalPrimitiveTypeE
.Decimal] = typeofDecimal;
223
typeATemp[(int)
InternalPrimitiveTypeE
.Double] = typeofDouble;
224
typeATemp[(int)
InternalPrimitiveTypeE
.Int16] = typeofInt16;
225
typeATemp[(int)
InternalPrimitiveTypeE
.Int32] = typeofInt32;
226
typeATemp[(int)
InternalPrimitiveTypeE
.Int64] = typeofInt64;
227
typeATemp[(int)
InternalPrimitiveTypeE
.SByte] = typeofSByte;
228
typeATemp[(int)
InternalPrimitiveTypeE
.Single] = typeofSingle;
229
typeATemp[(int)
InternalPrimitiveTypeE
.TimeSpan] = typeofTimeSpan;
230
typeATemp[(int)
InternalPrimitiveTypeE
.DateTime] = typeofDateTime;
231
typeATemp[(int)
InternalPrimitiveTypeE
.UInt16] = typeofUInt16;
232
typeATemp[(int)
InternalPrimitiveTypeE
.UInt32] = typeofUInt32;
233
typeATemp[(int)
InternalPrimitiveTypeE
.UInt64] = typeofUInt64;
243
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Invalid] = null;
244
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Boolean] = typeofBooleanArray;
245
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Byte] = typeofByteArray;
246
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Char] = typeofCharArray;
247
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Decimal] = typeofDecimalArray;
248
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Double] = typeofDoubleArray;
249
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Int16] = typeofInt16Array;
250
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Int32] = typeofInt32Array;
251
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Int64] = typeofInt64Array;
252
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.SByte] = typeofSByteArray;
253
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.Single] = typeofSingleArray;
254
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.TimeSpan] = typeofTimeSpanArray;
255
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.DateTime] = typeofDateTimeArray;
256
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.UInt16] = typeofUInt16Array;
257
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.UInt32] = typeofUInt32Array;
258
arrayTypeATemp[(int)
InternalPrimitiveTypeE
.UInt64] = typeofUInt64Array;
265
internal static Type ToType(
InternalPrimitiveTypeE
code)
277
internal static Array CreatePrimitiveArray(
InternalPrimitiveTypeE
code, int length)
282
case
InternalPrimitiveTypeE
.Boolean:
285
case
InternalPrimitiveTypeE
.Byte:
288
case
InternalPrimitiveTypeE
.Char:
291
case
InternalPrimitiveTypeE
.Decimal:
294
case
InternalPrimitiveTypeE
.Double:
297
case
InternalPrimitiveTypeE
.Int16:
300
case
InternalPrimitiveTypeE
.Int32:
303
case
InternalPrimitiveTypeE
.Int64:
306
case
InternalPrimitiveTypeE
.SByte:
309
case
InternalPrimitiveTypeE
.Single:
312
case
InternalPrimitiveTypeE
.TimeSpan:
315
case
InternalPrimitiveTypeE
.DateTime:
318
case
InternalPrimitiveTypeE
.UInt16:
321
case
InternalPrimitiveTypeE
.UInt32:
324
case
InternalPrimitiveTypeE
.UInt64:
337
typeInformation =
InternalPrimitiveTypeE
.Boolean;
339
typeInformation =
InternalPrimitiveTypeE
.Byte;
341
typeInformation =
InternalPrimitiveTypeE
.Char;
343
typeInformation =
InternalPrimitiveTypeE
.Double;
345
typeInformation =
InternalPrimitiveTypeE
.Int16;
347
typeInformation =
InternalPrimitiveTypeE
.Int32;
349
typeInformation =
InternalPrimitiveTypeE
.Int64;
351
typeInformation =
InternalPrimitiveTypeE
.SByte;
353
typeInformation =
InternalPrimitiveTypeE
.Single;
355
typeInformation =
InternalPrimitiveTypeE
.UInt16;
357
typeInformation =
InternalPrimitiveTypeE
.UInt32;
359
typeInformation =
InternalPrimitiveTypeE
.UInt64;
371
valueATemp[(int)
InternalPrimitiveTypeE
.Invalid] = null;
372
valueATemp[(int)
InternalPrimitiveTypeE
.Boolean] = "Boolean";
373
valueATemp[(int)
InternalPrimitiveTypeE
.Byte] = "Byte";
374
valueATemp[(int)
InternalPrimitiveTypeE
.Char] = "Char";
375
valueATemp[(int)
InternalPrimitiveTypeE
.Decimal] = "Decimal";
376
valueATemp[(int)
InternalPrimitiveTypeE
.Double] = "Double";
377
valueATemp[(int)
InternalPrimitiveTypeE
.Int16] = "Int16";
378
valueATemp[(int)
InternalPrimitiveTypeE
.Int32] = "Int32";
379
valueATemp[(int)
InternalPrimitiveTypeE
.Int64] = "Int64";
380
valueATemp[(int)
InternalPrimitiveTypeE
.SByte] = "SByte";
381
valueATemp[(int)
InternalPrimitiveTypeE
.Single] = "Single";
382
valueATemp[(int)
InternalPrimitiveTypeE
.TimeSpan] = "TimeSpan";
383
valueATemp[(int)
InternalPrimitiveTypeE
.DateTime] = "DateTime";
384
valueATemp[(int)
InternalPrimitiveTypeE
.UInt16] = "UInt16";
385
valueATemp[(int)
InternalPrimitiveTypeE
.UInt32] = "UInt32";
386
valueATemp[(int)
InternalPrimitiveTypeE
.UInt64] = "UInt64";
392
internal static String ToComType(
InternalPrimitiveTypeE
code)
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)
437
private static volatile
InternalPrimitiveTypeE
[] codeA;
441
InternalPrimitiveTypeE
[] codeATemp = new
InternalPrimitiveTypeE
[19];
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;
461
codeATemp[17] =
InternalPrimitiveTypeE
.Invalid;
462
codeATemp[(int)TypeCode.String] =
InternalPrimitiveTypeE
.Invalid;
467
internal static
InternalPrimitiveTypeE
ToPrimitiveTypeEnum(TypeCode typeCode)
475
internal static Object FromString(String value,
InternalPrimitiveTypeE
code)
480
Contract.Assert((code !=
InternalPrimitiveTypeE
.Invalid), "[Converter.FromString]!InternalPrimitiveTypeE.Invalid ");
481
if (code !=
InternalPrimitiveTypeE
.Invalid)
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (20)
384
if (arrayElemTypeNameInfo.NIprimitiveTypeEnum ==
InternalPrimitiveTypeE
.Byte)
386
else if (arrayElemTypeNameInfo.NIprimitiveTypeEnum ==
InternalPrimitiveTypeE
.Char)
530
InternalPrimitiveTypeE
typeInformation = typeNameInfo.NIprimitiveTypeEnum;
538
memberPrimitiveTyped.Set((
InternalPrimitiveTypeE
)typeInformation, value);
716
internal void WriteValue(
InternalPrimitiveTypeE
code, Object value)
722
case
InternalPrimitiveTypeE
.Boolean:
725
case
InternalPrimitiveTypeE
.Byte:
728
case
InternalPrimitiveTypeE
.Char:
731
case
InternalPrimitiveTypeE
.Double:
734
case
InternalPrimitiveTypeE
.Int16:
737
case
InternalPrimitiveTypeE
.Int32:
740
case
InternalPrimitiveTypeE
.Int64:
743
case
InternalPrimitiveTypeE
.SByte:
746
case
InternalPrimitiveTypeE
.Single:
749
case
InternalPrimitiveTypeE
.UInt16:
752
case
InternalPrimitiveTypeE
.UInt32:
755
case
InternalPrimitiveTypeE
.UInt64:
758
case
InternalPrimitiveTypeE
.Decimal:
761
case
InternalPrimitiveTypeE
.TimeSpan:
764
case
InternalPrimitiveTypeE
.DateTime:
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (3)
920
if ((objectPr.PRarrayElementType.IsValueType) && (pr.PRarrayElementTypeCode ==
InternalPrimitiveTypeE
.Invalid))
970
else if (Object.ReferenceEquals(pr.PRdtTypeCode,
InternalPrimitiveTypeE
.Invalid))
1144
else if (pr.PRdtTypeCode ==
InternalPrimitiveTypeE
.Invalid)
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (11)
415
InternalPrimitiveTypeE
code = ToCode(type);
416
if ((code ==
InternalPrimitiveTypeE
.Invalid) &&
608
if (memberTypeNameInfo.NIprimitiveTypeEnum ==
InternalPrimitiveTypeE
.Invalid)
1172
if (typeNameInfo.NIprimitiveTypeEnum ==
InternalPrimitiveTypeE
.Invalid)
1269
private NameInfo TypeToNameInfo(Type type, WriteObjectInfo objectInfo,
InternalPrimitiveTypeE
code, NameInfo nameInfo)
1277
if (code ==
InternalPrimitiveTypeE
.Invalid)
1320
InternalPrimitiveTypeE
previousCode =
InternalPrimitiveTypeE
.Invalid;
1321
internal
InternalPrimitiveTypeE
ToCode(Type type)
1329
InternalPrimitiveTypeE
code = Converter.ToCode(type);
1330
if (code !=
InternalPrimitiveTypeE
.Invalid)
system\runtime\serialization\formatters\binary\binaryparser.cs (25)
509
pr.PRdtTypeCode =
InternalPrimitiveTypeE
.Invalid;
638
pr.PRdtTypeCode =
InternalPrimitiveTypeE
.Invalid;
732
pr.PRdtTypeCode =
InternalPrimitiveTypeE
.Invalid;
779
prs.PRdtTypeCode =
InternalPrimitiveTypeE
.Invalid;
950
pr.PRdtTypeCode =
InternalPrimitiveTypeE
.Invalid;
1011
if (pr.PRarrayElementTypeCode ==
InternalPrimitiveTypeE
.Byte)
1013
else if (pr.PRarrayElementTypeCode ==
InternalPrimitiveTypeE
.Char)
1061
memberPrimitiveUnTyped.Set((
InternalPrimitiveTypeE
)expectedTypeInformation);
1068
prs.PRdtTypeCode = (
InternalPrimitiveTypeE
)expectedTypeInformation;
1177
internal Object ReadValue(
InternalPrimitiveTypeE
code)
1184
case
InternalPrimitiveTypeE
.Boolean:
1187
case
InternalPrimitiveTypeE
.Byte:
1190
case
InternalPrimitiveTypeE
.Char:
1193
case
InternalPrimitiveTypeE
.Double:
1196
case
InternalPrimitiveTypeE
.Int16:
1199
case
InternalPrimitiveTypeE
.Int32:
1202
case
InternalPrimitiveTypeE
.Int64:
1205
case
InternalPrimitiveTypeE
.SByte:
1208
case
InternalPrimitiveTypeE
.Single:
1211
case
InternalPrimitiveTypeE
.UInt16:
1214
case
InternalPrimitiveTypeE
.UInt32:
1217
case
InternalPrimitiveTypeE
.UInt64:
1220
case
InternalPrimitiveTypeE
.Decimal:
1223
case
InternalPrimitiveTypeE
.TimeSpan:
1226
case
InternalPrimitiveTypeE
.DateTime:
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (32)
67
internal
InternalPrimitiveTypeE
PRdtTypeCode;
86
internal
InternalPrimitiveTypeE
PRarrayElementTypeCode;
165
PRdtTypeCode =
InternalPrimitiveTypeE
.Invalid;
180
PRarrayElementTypeCode =
InternalPrimitiveTypeE
.Invalid;
757
internal
InternalPrimitiveTypeE
NIprimitiveTypeEnum =
InternalPrimitiveTypeE
.Invalid;
777
NIprimitiveTypeEnum =
InternalPrimitiveTypeE
.Invalid;
836
InternalPrimitiveTypeE
code;
850
internal PrimitiveArray(
InternalPrimitiveTypeE
code, Array array)
855
internal void Init(
InternalPrimitiveTypeE
code, Array array)
860
case
InternalPrimitiveTypeE
.Boolean:
863
case
InternalPrimitiveTypeE
.Char:
866
case
InternalPrimitiveTypeE
.Double:
869
case
InternalPrimitiveTypeE
.Int16:
872
case
InternalPrimitiveTypeE
.Int32:
875
case
InternalPrimitiveTypeE
.Int64:
878
case
InternalPrimitiveTypeE
.SByte:
881
case
InternalPrimitiveTypeE
.Single:
884
case
InternalPrimitiveTypeE
.UInt16:
887
case
InternalPrimitiveTypeE
.UInt32:
890
case
InternalPrimitiveTypeE
.UInt64:
900
case
InternalPrimitiveTypeE
.Boolean:
903
case
InternalPrimitiveTypeE
.Char:
909
case
InternalPrimitiveTypeE
.Double:
912
case
InternalPrimitiveTypeE
.Int16:
915
case
InternalPrimitiveTypeE
.Int32:
918
case
InternalPrimitiveTypeE
.Int64:
921
case
InternalPrimitiveTypeE
.SByte:
924
case
InternalPrimitiveTypeE
.Single:
927
case
InternalPrimitiveTypeE
.UInt16:
930
case
InternalPrimitiveTypeE
.UInt32:
933
case
InternalPrimitiveTypeE
.UInt64: