Creating a specific Generic Type from two ITypeReferences

Mar 30, 2011 at 12:31 AM

I have two ITypeReference objects, for example representing:

  • System.Lazy<T>
  • System.Object

What I would like to do is use these two references to get an ITypeReference for System.Lazy<System.Object>. How can I do this?

Coordinator
Mar 30, 2011 at 12:57 AM

GenericTypeInstance.GetGenericTypeInstance in MetadataHelper.dll.

Mar 30, 2011 at 10:22 PM

Perfect thanks. Sorry for all the questions, still trying to find my way around and grok it all.