104 references to CustomAttributeEncoding
mscorlib (104)
system\reflection\customattribute.cs (85)
218
private static
CustomAttributeEncoding
TypeToCustomAttributeEncoding(RuntimeType type)
221
return
CustomAttributeEncoding
.Int32;
224
return
CustomAttributeEncoding
.Enum;
227
return
CustomAttributeEncoding
.String;
230
return
CustomAttributeEncoding
.Type;
233
return
CustomAttributeEncoding
.Object;
236
return
CustomAttributeEncoding
.Array;
239
return
CustomAttributeEncoding
.Char;
242
return
CustomAttributeEncoding
.Boolean;
245
return
CustomAttributeEncoding
.Byte;
248
return
CustomAttributeEncoding
.SByte;
251
return
CustomAttributeEncoding
.Int16;
254
return
CustomAttributeEncoding
.UInt16;
257
return
CustomAttributeEncoding
.UInt32;
260
return
CustomAttributeEncoding
.Int64;
263
return
CustomAttributeEncoding
.UInt64;
266
return
CustomAttributeEncoding
.Float;
269
return
CustomAttributeEncoding
.Double;
273
return
CustomAttributeEncoding
.Object;
276
return
CustomAttributeEncoding
.Object;
279
return
CustomAttributeEncoding
.Object;
282
return
CustomAttributeEncoding
.Undefined;
288
CustomAttributeEncoding
encodedType = CustomAttributeData.TypeToCustomAttributeEncoding(parameterType);
289
CustomAttributeEncoding
encodedArrayType =
CustomAttributeEncoding
.Undefined;
290
CustomAttributeEncoding
encodedEnumType =
CustomAttributeEncoding
.Undefined;
293
if (encodedType ==
CustomAttributeEncoding
.Array)
299
if (encodedType ==
CustomAttributeEncoding
.Enum || encodedArrayType ==
CustomAttributeEncoding
.Enum)
385
fields[i].Name,
CustomAttributeEncoding
.Field, InitCustomAttributeType((RuntimeType)fields[i].FieldType));
388
properties[i].Name,
CustomAttributeEncoding
.Property, InitCustomAttributeType((RuntimeType)properties[i].PropertyType));
565
if (m_namedParams[i].EncodedArgument.CustomAttributeType.EncodedType !=
CustomAttributeEncoding
.Undefined)
573
if (m_namedParams[i].EncodedArgument.CustomAttributeType.EncodedType !=
CustomAttributeEncoding
.Undefined)
693
private static Type CustomAttributeEncodingToType(
CustomAttributeEncoding
encodedType)
697
case (
CustomAttributeEncoding
.Enum):
700
case (
CustomAttributeEncoding
.Int32):
703
case (
CustomAttributeEncoding
.String):
706
case (
CustomAttributeEncoding
.Type):
709
case (
CustomAttributeEncoding
.Array):
712
case (
CustomAttributeEncoding
.Char):
715
case (
CustomAttributeEncoding
.Boolean):
718
case (
CustomAttributeEncoding
.SByte):
721
case (
CustomAttributeEncoding
.Byte):
724
case (
CustomAttributeEncoding
.Int16):
727
case (
CustomAttributeEncoding
.UInt16):
730
case (
CustomAttributeEncoding
.UInt32):
733
case (
CustomAttributeEncoding
.Int64):
736
case (
CustomAttributeEncoding
.UInt64):
739
case (
CustomAttributeEncoding
.Float):
742
case (
CustomAttributeEncoding
.Double):
745
case (
CustomAttributeEncoding
.Object):
754
private static object EncodedValueToRawValue(long val,
CustomAttributeEncoding
encodedType)
758
case
CustomAttributeEncoding
.Boolean:
761
case
CustomAttributeEncoding
.Char:
764
case
CustomAttributeEncoding
.Byte:
767
case
CustomAttributeEncoding
.SByte:
770
case
CustomAttributeEncoding
.Int16:
773
case
CustomAttributeEncoding
.UInt16:
776
case
CustomAttributeEncoding
.Int32:
779
case
CustomAttributeEncoding
.UInt32:
782
case
CustomAttributeEncoding
.Int64:
785
case
CustomAttributeEncoding
.UInt64:
788
case
CustomAttributeEncoding
.Float:
791
case
CustomAttributeEncoding
.Double:
849
CustomAttributeEncoding
encodedType = encodedArg.CustomAttributeType.EncodedType;
851
if (encodedType ==
CustomAttributeEncoding
.Undefined)
854
else if (encodedType ==
CustomAttributeEncoding
.Enum)
859
else if (encodedType ==
CustomAttributeEncoding
.String)
864
else if (encodedType ==
CustomAttributeEncoding
.Type)
873
else if (encodedType ==
CustomAttributeEncoding
.Array)
878
if (encodedType ==
CustomAttributeEncoding
.Enum)
1074
private
CustomAttributeEncoding
m_fieldOrProperty;
1075
private
CustomAttributeEncoding
m_padding;
1081
public CustomAttributeNamedParameter(string argumentName,
CustomAttributeEncoding
fieldOrProperty, CustomAttributeType type)
1151
private
CustomAttributeEncoding
m_encodedType; // ...array
1152
private
CustomAttributeEncoding
m_encodedEnumType; // ...enum
1153
private
CustomAttributeEncoding
m_encodedArrayType; // ...enum type
1154
private
CustomAttributeEncoding
m_padding;
1158
public CustomAttributeType(
CustomAttributeEncoding
encodedType,
CustomAttributeEncoding
encodedArrayType,
1159
CustomAttributeEncoding
encodedEnumType, string enumName)
1170
public
CustomAttributeEncoding
EncodedType { get { return m_encodedType; } }
1171
public
CustomAttributeEncoding
EncodedEnumType { get { return m_encodedEnumType; } }
1172
public
CustomAttributeEncoding
EncodedArrayType { get { return m_encodedArrayType; } }
system\reflection\emit\customattributebuilder.cs (19)
225
writer.Write((byte)
CustomAttributeEncoding
.Property);
277
writer.Write((byte)
CustomAttributeEncoding
.Field);
296
writer.Write((byte)
CustomAttributeEncoding
.SByte);
299
writer.Write((byte)
CustomAttributeEncoding
.Byte);
302
writer.Write((byte)
CustomAttributeEncoding
.Char);
305
writer.Write((byte)
CustomAttributeEncoding
.Boolean);
308
writer.Write((byte)
CustomAttributeEncoding
.Int16);
311
writer.Write((byte)
CustomAttributeEncoding
.UInt16);
314
writer.Write((byte)
CustomAttributeEncoding
.Int32);
317
writer.Write((byte)
CustomAttributeEncoding
.UInt32);
320
writer.Write((byte)
CustomAttributeEncoding
.Int64);
323
writer.Write((byte)
CustomAttributeEncoding
.UInt64);
326
writer.Write((byte)
CustomAttributeEncoding
.Float);
329
writer.Write((byte)
CustomAttributeEncoding
.Double);
338
writer.Write((byte)
CustomAttributeEncoding
.Enum);
343
writer.Write((byte)
CustomAttributeEncoding
.String);
347
writer.Write((byte)
CustomAttributeEncoding
.Type);
351
writer.Write((byte)
CustomAttributeEncoding
.Array);
357
writer.Write((byte)
CustomAttributeEncoding
.Object);