Exemplo n.º 1
0
 internal static void SetMarshalAsAttribute(ModuleBuilder module, int token, CustomAttributeBuilder attribute)
 {
     attribute = attribute.DecodeBlob(module.Assembly);
     FieldMarshalTable.Record rec = new FieldMarshalTable.Record();
     rec.Parent     = token;
     rec.NativeType = WriteMarshallingDescriptor(module, attribute);
     module.FieldMarshal.AddRecord(rec);
 }
		internal static void SetMarshalAsAttribute(ModuleBuilder module, int token, CustomAttributeBuilder attribute)
		{
			attribute = attribute.DecodeBlob(module.Assembly);
			FieldMarshalTable.Record rec = new FieldMarshalTable.Record();
			rec.Parent = token;
			rec.NativeType = WriteMarshallingDescriptor(module, attribute);
			module.FieldMarshal.AddRecord(rec);
		}