This project is read-only.

How to get containing unit reference for generic type instance?

Topics: Metadata Model
Jul 10, 2009 at 5:50 AM

subj

Jul 10, 2009 at 6:01 AM

Only nominal types are contained inside types and namespaces. Structural types, such as arrays and generic instances are not contained anywhere.

Jul 10, 2009 at 6:18 AM

Thanks for quick response ;)

Another thing, I have some type inherited from SpecializedNestedNonGenericTypeReference. How can I detect unit where the base class was defined?

Jul 10, 2009 at 6:28 AM

Specialized nested types have a property called UnspecializedVersion, which you can feed into TypeHelper.GetDefininingUnit.

Jul 10, 2009 at 6:42 AM

Thanks, that's wthat I need.