94 references to ResourceTypeCode
mscorlib (94)
system\resources\resourcereader.cs (44)
69
internal static bool CanCache(
ResourceTypeCode
value)
72
return value <=
ResourceTypeCode
.LastPrimitive;
518
ResourceTypeCode
junk;
544
ResourceTypeCode
typeCode = (
ResourceTypeCode
) typeIndex;
545
if (typeCode !=
ResourceTypeCode
.String && typeCode !=
ResourceTypeCode
.Null) {
547
if (typeCode <
ResourceTypeCode
.StartOfUserTypes)
550
typeString = FindType(typeCode -
ResourceTypeCode
.StartOfUserTypes).FullName;
553
if (typeCode ==
ResourceTypeCode
.String) // ignore Null
565
ResourceTypeCode
typeCode;
569
internal Object LoadObject(int pos, out
ResourceTypeCode
typeCode)
573
typeCode = (o is String) ?
ResourceTypeCode
.String :
ResourceTypeCode
.StartOfUserTypes;
659
internal Object LoadObjectV2(int pos, out
ResourceTypeCode
typeCode)
678
private Object _LoadObjectV2(int pos, out
ResourceTypeCode
typeCode) {
680
typeCode = (
ResourceTypeCode
) _store.Read7BitEncodedInt();
685
case
ResourceTypeCode
.Null:
688
case
ResourceTypeCode
.String:
691
case
ResourceTypeCode
.Boolean:
694
case
ResourceTypeCode
.Char:
697
case
ResourceTypeCode
.Byte:
700
case
ResourceTypeCode
.SByte:
703
case
ResourceTypeCode
.Int16:
706
case
ResourceTypeCode
.UInt16:
709
case
ResourceTypeCode
.Int32:
712
case
ResourceTypeCode
.UInt32:
715
case
ResourceTypeCode
.Int64:
718
case
ResourceTypeCode
.UInt64:
721
case
ResourceTypeCode
.Single:
724
case
ResourceTypeCode
.Double:
727
case
ResourceTypeCode
.Decimal:
730
case
ResourceTypeCode
.DateTime:
735
case
ResourceTypeCode
.TimeSpan:
740
case
ResourceTypeCode
.ByteArray: {
763
case
ResourceTypeCode
.Stream: {
787
if (typeCode <
ResourceTypeCode
.StartOfUserTypes) {
795
int typeIndex = typeCode -
ResourceTypeCode
.StartOfUserTypes;
1229
ResourceTypeCode
typeCode = (
ResourceTypeCode
) _store.Read7BitEncodedInt();
1230
if (typeCode < 0 || typeCode >=
ResourceTypeCode
.StartOfUserTypes + _typeTable.Length) {
1245
private String TypeNameFromTypeCode(
ResourceTypeCode
typeCode)
1248
if (typeCode <
ResourceTypeCode
.StartOfUserTypes) {
1253
int typeIndex = typeCode -
ResourceTypeCode
.StartOfUserTypes;
system\resources\resourcewriter.cs (47)
418
ResourceTypeCode
typeCode = FindTypeCode(value, typeNames);
525
private
ResourceTypeCode
FindTypeCode(Object value, List<String> types)
528
return
ResourceTypeCode
.Null;
532
return
ResourceTypeCode
.String;
534
return
ResourceTypeCode
.Int32;
536
return
ResourceTypeCode
.Boolean;
538
return
ResourceTypeCode
.Char;
540
return
ResourceTypeCode
.Byte;
542
return
ResourceTypeCode
.SByte;
544
return
ResourceTypeCode
.Int16;
546
return
ResourceTypeCode
.Int64;
548
return
ResourceTypeCode
.UInt16;
550
return
ResourceTypeCode
.UInt32;
552
return
ResourceTypeCode
.UInt64;
554
return
ResourceTypeCode
.Single;
556
return
ResourceTypeCode
.Double;
558
return
ResourceTypeCode
.Decimal;
560
return
ResourceTypeCode
.DateTime;
562
return
ResourceTypeCode
.TimeSpan;
564
return
ResourceTypeCode
.ByteArray;
566
return
ResourceTypeCode
.Stream;
576
ResourceTypeCode
typeCode = (
ResourceTypeCode
)Enum.Parse(typeof(
ResourceTypeCode
), typeName);
591
return (
ResourceTypeCode
)(typeIndex +
ResourceTypeCode
.StartOfUserTypes);
595
private void WriteValue(
ResourceTypeCode
typeCode, Object value, BinaryWriter writer, IFormatter objFormatter)
603
case
ResourceTypeCode
.Null:
606
case
ResourceTypeCode
.String:
610
case
ResourceTypeCode
.Boolean:
614
case
ResourceTypeCode
.Char:
618
case
ResourceTypeCode
.Byte:
622
case
ResourceTypeCode
.SByte:
626
case
ResourceTypeCode
.Int16:
630
case
ResourceTypeCode
.UInt16:
634
case
ResourceTypeCode
.Int32:
638
case
ResourceTypeCode
.UInt32:
642
case
ResourceTypeCode
.Int64:
646
case
ResourceTypeCode
.UInt64:
650
case
ResourceTypeCode
.Single:
654
case
ResourceTypeCode
.Double:
658
case
ResourceTypeCode
.Decimal:
662
case
ResourceTypeCode
.DateTime:
668
case
ResourceTypeCode
.TimeSpan:
673
case
ResourceTypeCode
.ByteArray:
681
case
ResourceTypeCode
.Stream:
719
Contract.Assert(typeCode >=
ResourceTypeCode
.StartOfUserTypes, String.Format(CultureInfo.InvariantCulture, "ResourceReader: Unsupported ResourceTypeCode in .resources file! {0}", typeCode));
system\resources\runtimeresourceset.cs (3)
325
ResourceTypeCode
typeCode;
328
typeCode =
ResourceTypeCode
.String;
421
ResourceTypeCode
typeCode;