[Mono-dev] Why is UnmanagedType_80 required?
Raja R Harinath
rharinath at novell.com
Wed Aug 31 03:17:23 EDT 2005
Kornél Pál <kornelpal at hotmail.com> writes:
> According to my experiences using no ArraySubType has the same result as
> ArraySubType = (UnmanagedType)80 on mcs and csc.exe as well.
> Could someone tell me please why UnmanagedType_80 is required?
There was a bug in ancient versions of mcs wrt. constant folding in
attribute arguments. We needed to declare an explicit enumeration
constant, and use that instead.
The actual reason for using '(UnmanagetType) 80': probably corcompare.
More information about the Mono-devel-list