public ObjectParser(Type type)
 {
     typeAlias = new TypeAlias(type);
     value = objParam = Expression.Parameter(typeof(object), "obj");
     objectType = schemaType = type;
     hierarchyDepth = type.GetHierarchyDepth();
 }
Beispiel #2
0
 public ObjectParser(Type type)
 {
     typeAlias      = new TypeAlias(type);
     value          = objParam = Expression.Parameter(typeof(object), "obj");
     objectType     = schemaType = type;
     hierarchyDepth = type.GetHierarchyDepth();
 }
Beispiel #3
0
 public ObjectParser(Type type, ObjectBondedFactory bondedFactory)
 {
     typeAlias          = new TypeAlias(type);
     value              = objParam = Expression.Parameter(typeof(object), "obj");
     objectType         = schemaType = type;
     hierarchyDepth     = type.GetHierarchyDepth();
     this.bondedFactory = bondedFactory ?? NewBonded;
 }
Beispiel #4
0
        public IEnumerable <Expression <Func <R, object> > > Generate(IParser parser, Type type)
        {
            Audit.ArgNotNull(type, "type");

            typeAlias = new TypeAlias(type);
            Deserialize(parser, null, type, type, true);
            return(deserializeFuncs);
        }
Beispiel #5
0
 public ObjectParser(Type type, ObjectBondedFactory bondedFactory)
 {
     typeAlias = new TypeAlias(type);
     value = objParam = Expression.Parameter(typeof(object), "obj");
     objectType = schemaType = type;
     hierarchyDepth = type.GetHierarchyDepth();
     this.bondedFactory = bondedFactory ?? NewBonded;
 }
 ObjectParser(ObjectParser that, Expression value, Type schemaType)
 {
     typeAlias = that.typeAlias;
     objParam = that.objParam;
     this.value = value;
     this.schemaType = schemaType;
     objectType = value.Type;
     hierarchyDepth = schemaType.GetHierarchyDepth();
 }
Beispiel #7
0
 ObjectParser(ObjectParser that, Expression value, Type schemaType)
 {
     typeAlias       = that.typeAlias;
     objParam        = that.objParam;
     this.value      = value;
     this.schemaType = schemaType;
     objectType      = value.Type;
     hierarchyDepth  = schemaType.GetHierarchyDepth();
 }