コード例 #1
0
            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));
            }
コード例 #2
0
 public T2[] Generate(T1[] val)
 {
     return(val.Select(x => parent.Generate(x)).ToArray());
 }