Hi,
what kind of object has this method to return?
Generally the MSDN says return a list of the original data types. If it
comes to an example the instruction says return a list of strings. But
then the code example (in most cases an array of ints) returns a list
of ints. Unfortunately ints are implicitly castable to string.
So let's take an more un-obvious example. Lets say I have a class
Hotzenplotz and I want to have a TypeConverter. Hotzenplotz is
convertible from and to int and string.
Does GetStandardValues return a list of Hotzenplotz or a list of
string?
IMHO a list of Hotzenplotz, if you need it converted to string (e.g.
for an UI) one has to call ConvertTo(hotzenplotzObject,
typeof(string)).
Am I right or wrong?