Beispiel #1
0
        public CloneDebugView(Type type)
        {
            var parser         = new ObjectParser(type);
            var cloneTransform = new DeserializerTransform <object>((o, i) => clone[i](o));
            var expressions    = cloneTransform.Generate(parser, type);

            debugView = DebugViewHelper.ToString(expressions);
        }
Beispiel #2
0
        static Func <object, object>[] Generate(Type type, DeserializerTransform <object> transform)
        {
            var parser = new ObjectParser(typeof(SourceT));

            return(transform.Generate(parser, type).Select(lambda => lambda.Compile()).ToArray());
        }