D
djpenton
Hi All,
Seems to be a specific failure with SortedList in getting type from
name. Is this a problem with the .NET framework?
When I run this line in the immediate window:
Type.GetType(typeof(SortedList<double,double>).ToString(),true)
I get
Could not load type 'System.Collections.Generic.SortedList`2' from
assembly 'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
These work:
Type.GetType(typeof(List<double>).ToString(),true)
Type.GetType(typeof(List<double>).FullName,true)
Type.GetType(typeof(double).ToString(),true)
Type.GetType(typeof(double).FullName.true)
typeof(SortedList<double,double>).FullName
typeof(SortedList<double,double>).ToString()
These fail:
Type.GetType(typeof(SortedList<double,double>).FullName,true)
Type.GetType(typeof(SortedList<int,int>).FullName,true)
Type.GetType(typeof(SortedDictionary<double,double>).FullName,true)
Type.GetType(typeof(SortedDictionary<double,double>).ToString(),true)
I have run out of things to try and test for. Let me know if you have
any ideas.
Cheers,
Dave.
Seems to be a specific failure with SortedList in getting type from
name. Is this a problem with the .NET framework?
When I run this line in the immediate window:
Type.GetType(typeof(SortedList<double,double>).ToString(),true)
I get
Could not load type 'System.Collections.Generic.SortedList`2' from
assembly 'mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
These work:
Type.GetType(typeof(List<double>).ToString(),true)
Type.GetType(typeof(List<double>).FullName,true)
Type.GetType(typeof(double).ToString(),true)
Type.GetType(typeof(double).FullName.true)
typeof(SortedList<double,double>).FullName
typeof(SortedList<double,double>).ToString()
These fail:
Type.GetType(typeof(SortedList<double,double>).FullName,true)
Type.GetType(typeof(SortedList<int,int>).FullName,true)
Type.GetType(typeof(SortedDictionary<double,double>).FullName,true)
Type.GetType(typeof(SortedDictionary<double,double>).ToString(),true)
I have run out of things to try and test for. Let me know if you have
any ideas.
Cheers,
Dave.