1
Vote

Reflection.Converter returns null for simple class instances

description

Code line was mistakenly replaced with some test stuff (see "HERE IS THE ISSUE" mark below).
 
public static Object Convert(Object srcValue, Type destType)
{
...
 
// If we can't copy, just return a reference
else
{
    // destValue = srcValue;       <- HERE IS THE ISSUE
    destValue = null;
}
 
...
}

comments