[Mono-dev] gmcs: 'Type.IsGenericInstance' property
Martin Baulig
martin at ximian.com
Sat Dec 10 13:37:36 EST 2005
On Fri, 2005-12-09 at 10:21 +0530, Raja R Harinath wrote:
> 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'.
> 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.
Hi,
yes, that's correct.
However, I'm not sure whether making GMCS compilable with csc is such a
good idea since the resulting binary will not run on the MS runtime.
Martin
More information about the Mono-devel-list
mailing list