public static T ChangeType <T>(object value) { var data = new ChangeTypeData <T>(value); changeTypeImpl(ref data); return(data.GetResultOrThrow()); }
public static object ChangeType(object value, Type targetType) { var data = new ChangeTypeData <object>(value, targetType); changeTypeImpl(ref data); return(data.GetResultOrThrow()); }