[Mono-dev] gmcs: 'Type.IsGenericInstance' property
Raja R Harinath
rharinath at novell.com
Thu Dec 8 23:51:16 EST 2005
Hi,
Martin Baulig <martin at ximian.com> writes:
> On Wed, 2005-12-07 at 12:04 +0000, george moudry wrote:
>> Dear Mono-devel,
>> I would like to compile gmcs with Microsoft's DLLs (mscorlib.dll version
>> 2.0).
>> (Reason: just downloaded Visual Studio Express, and created a tiny project
>> for gmcs to try both out)
>> Compilation fails because gmcs uses a Mono-library-specific property,
>> 'Type.IsGenericInstance'.
>
> Hi,
>
> this is not supported and will not be supported in any near future.
>
>> Two questions:
>> 1) what is 'IsGenericInstance' equivalent to - is it .NET2.0
>> Type.IsGenericTypeDefinition, or is it Type.IsGenericType?
>> 2) would gmcs accept a patch to replace IsGenericInstance with .NET2.0
>> properties?
>
> No, I would not accept such a patch since it doesn't fix the problem -
> there are a lot more issues. GMCS only works on the Mono runtime.
Still, if it can trivially be implemented with the .NET 2.0 API, I think
we should still take it.
IIUC,
IsGenericInstance == IsGenericType && !IsGenericTypeDefinition
Martin, is my reasoning correct? If so, we can introduce a
TypeManager.IsGenericInstance and replace all uses with that.
- Hari
More information about the Mono-devel-list
mailing list