[Mono-devel-list] Re: [Mono-patches] r42104 - trunk/mcs/gmcs
Raja R Harinath
rharinath at novell.com
Wed Mar 23 00:55:01 EST 2005
Hi,
Raja R Harinath <rharinath at novell.com> writes:
> "Martin Baulig" <martin at mono-cvs.ximian.com> writes:
>
>> * typemanager.cs (TypeManager.LookupMemberCache): Add support for
>> generic instances.
> [snip]
>> public static MemberCache LookupMemberCache (Type t)
>> {
>> + if (t.IsGenericInstance)
>> + return LookupMemberCache (t.GetGenericTypeDefinition ());
> [snip]
>
> I'm not familiar with the generics API. However, will this suffice?
> Don't we have to create a new membercache for the particular generic
> instance?
>
>> From what I can understand, given
>
> class foo<T> { void f (T t); }
>
> and we do a LookupMemberCache (typeof (foo<int>)), the returned member
> cache should contain a method named
>
> void f (int t);
Nevermind. I see that you've reverted this patch.
- Hari
More information about the Mono-devel-list
mailing list