How to get containing unit reference for generic type instance?

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

subj

Coordinator
Jul 10, 2009 at 5: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 5: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?

Coordinator
Jul 10, 2009 at 5:28 AM

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

Jul 10, 2009 at 5:42 AM

Thanks, that's wthat I need.