Пример #1
0
 public T Clone <T>(T original)
 {
     if (_modelCache == null)
     {
         _modelCache = _assembler.Disassemble(original, true);
     }
     return(_assembler.Assemble <T>(_modelCache));
 }
        public static object BuildObject(JToken token, Type type)
        {
            RootAssembler assembler = new RootAssembler();

            return(assembler.Assemble(DeserializeObject(token), type));
        }