Exemplo n.º 1
0
 private TaggedParser(PayloadBondedFactory bondedFactory)
 {
     isBase             = false;
     this.bondedFactory = bondedFactory ?? NewBonded;
     baseParser         = new TaggedParser <R>(this, isBase: true);
     fieldParser        = this;
 }
Exemplo n.º 2
0
 UntaggedParser(UntaggedReader <R> reader, DeferredSkip deferredSkip, RuntimeSchema schema, PayloadBondedFactory bondedFactory)
 {
     this.reader        = reader;
     this.schema        = schema;
     this.deferredSkip  = deferredSkip;
     this.bondedFactory = bondedFactory ?? NewBonded;
     hierarchyDepth     = schema.GetHierarchyDepth();
 }
Exemplo n.º 3
0
 TaggedParser(TaggedParser <R> that, bool isBase)
 {
     this.isBase   = isBase;
     bondedFactory = that.bondedFactory;
     reader        = that.reader;
     baseParser    = this;
     fieldParser   = that;
 }
Exemplo n.º 4
0
 public UntaggedParser(Type type, PayloadBondedFactory bondedFactory)
     : this(Schema.GetRuntimeSchema(type), bondedFactory)
 {
     Audit.ArgNotNull(type, "type");
 }
Exemplo n.º 5
0
 public UntaggedParser(RuntimeSchema schema, PayloadBondedFactory bondedFactory)
     : this(new UntaggedReader <R>(), new DeferredSkip(), schema, bondedFactory)
 {
     Audit.ArgRule(schema.HasValue, "UntaggedParser requires runtime schema");
 }
Exemplo n.º 6
0
 public static IParser Create <S>(S schema, PayloadBondedFactory bondedFactory)
 {
     return(Cache <S> .Create(schema, bondedFactory));
 }
Exemplo n.º 7
0
 public TaggedParser(Type type, PayloadBondedFactory bondedFactory)
     : this(bondedFactory)
 { }
Exemplo n.º 8
0
 public TaggedParser(RuntimeSchema schema, PayloadBondedFactory bondedFactory)
     : this(bondedFactory)
 { }