Creating a specific Generic Type from two ITypeReferences

Mar 29, 2011 at 11:31 PM

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?

Mar 29, 2011 at 11:57 PM

GenericTypeInstance.GetGenericTypeInstance in MetadataHelper.dll.

Mar 30, 2011 at 9:22 PM

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