P
Peter Morris
Hi all
I am using TypeBuilder to generate an assembly dynamically, a property on
one of the classes needs to be List<OtherGeneratedClass>. I am trying the
code in Jon Skeet's book
Type.GetType("System.Collections.Generic.List`1[System.String]")
which works fine, but when I need to use the other class....
Type otherClassType = otherTypeBuilder.UnderlyingSystemType;
Type genericType =
Type.GetType(string.Format("System.Collections.Generic.List`1[{0}]",
otherClassType.FullName));
I always get NULL as the return type. Any ideas?
--
Pete
=========================================
I use Enterprise Core Objects (Domain driven design)
http://www.capableobjects.com/
=========================================
I am using TypeBuilder to generate an assembly dynamically, a property on
one of the classes needs to be List<OtherGeneratedClass>. I am trying the
code in Jon Skeet's book
Type.GetType("System.Collections.Generic.List`1[System.String]")
which works fine, but when I need to use the other class....
Type otherClassType = otherTypeBuilder.UnderlyingSystemType;
Type genericType =
Type.GetType(string.Format("System.Collections.Generic.List`1[{0}]",
otherClassType.FullName));
I always get NULL as the return type. Any ideas?
--
Pete
=========================================
I use Enterprise Core Objects (Domain driven design)
http://www.capableobjects.com/
=========================================