+2005-09-01 Kornél Pál <kornelpal@hotmail.com>
+
+ Fix #75945.
+ * attribute.cs (Attribute.GetMarshal): If ArraySubType is not
+ specified, don't default to UnmanagedType.I4.
+
2005-09-01 Atsushi Enomoto <atsushi@ximian.com>
* expression.cs : conditional operator should check possibly
return null;
}
+ //
+ // Theoretically, we can get rid of this, since FieldBuilder.SetCustomAttribute()
+ // and ParameterBuilder.SetCustomAttribute() are supposed to handle this attribute.
+ // However, we can't, since it appears that the .NET 1.1 SRE hangs when given a MarshalAsAttribute.
+ //
public UnmanagedMarshal GetMarshal (Attributable attr)
{
UnmanagedType UnmanagedType;
}
object o = GetFieldValue ("ArraySubType");
- UnmanagedType array_sub_type = o == null ? UnmanagedType.I4 : (UnmanagedType) o;
+ UnmanagedType array_sub_type = o == null ? (UnmanagedType) 0x50 /* NATIVE_MAX */ : (UnmanagedType) o;
switch (UnmanagedType) {
case UnmanagedType.CustomMarshaler: {