public IObjectDescriptor Read(object target) { object realValue = field.GetValue(target); Type realType = Type; if (converter != null) { realValue = converter.Generate((T1)realValue); realType = typeof(T2); } return(new ObjectDescriptor(realValue, realValue.GetType(), realType)); }
public T2[] Generate(T1[] val) { return(val.Select(x => parent.Generate(x)).ToArray()); }