G
Guest
I tried using Type::GetType on
S"System.Collections.Specialized.StringCollection", but it returned NULL.
The only way it worked was when I used the fully qualified name, including
the assembly name, version, and token information.
This seems like a bug to me, since StringCollection is part of system.dll,
and I thought types in this DLL were automatically located using GetType, but
perhaps I am mistaken.
It seems to me that requiring all this information as part of the GetType
call is just asking for your code to be non-portable.
Does anyone have any more information on this? Any help is appreciated.
S"System.Collections.Specialized.StringCollection", but it returned NULL.
The only way it worked was when I used the fully qualified name, including
the assembly name, version, and token information.
This seems like a bug to me, since StringCollection is part of system.dll,
and I thought types in this DLL were automatically located using GetType, but
perhaps I am mistaken.
It seems to me that requiring all this information as part of the GetType
call is just asking for your code to be non-portable.
Does anyone have any more information on this? Any help is appreciated.