[Mono-dev] Handling of generics by Mono compiler

Marek Safar marek.safar at gmail.com
Wed Jan 16 09:52:57 UTC 2013


Hi Stuart,

Please do you know if there is a one-to-one correspondence between
> InflatedTypeSpec in the Mono code and C# constructed types? Or is
> InflatedTypeSpec used for both generic and constructed types?
>

They are pretty closely matched. Compiled generic types always exist at
least as open (generic) types, usually TypeContainer(s) but can at the same
time exist as InflatedTypeSpec too when accesses from within the type. For
example in the following sample enum parent container will be
InflatedTypeSpec.

class C<T>
{
public enum E
{
}
}

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130116/ee082ca5/attachment.html>


More information about the Mono-devel-list mailing list