public object Read(object value, ProtoReader source)
 {
     if (type == typeof(object))
     {
         return(BclHelpers.ReadNetObject(value, source, key, null, options));
     }
     else
     {
         return(BclHelpers.ReadNetObject(value, source, key, type, options));
     }
 }
Ejemplo n.º 2
0
        public object Read(object value, ProtoReader source)
        {
            Type        type;
            object      obj         = value;
            ProtoReader protoReader = source;
            int         num         = this.key;

            if (this.type == typeof(object))
            {
                type = null;
            }
            else
            {
                type = this.type;
            }
            return(BclHelpers.ReadNetObject(obj, protoReader, num, type, this.options));
        }
Ejemplo n.º 3
0
 // Token: 0x060035A6 RID: 13734 RVA: 0x00134C0A File Offset: 0x0013300A
 public object Read(object value, ProtoReader source)
 {
     return(BclHelpers.ReadNetObject(value, source, key, (type != typeof(object)) ? type : null, options));
 }
Ejemplo n.º 4
0
 // Token: 0x06000224 RID: 548 RVA: 0x00003572 File Offset: 0x00001772
 public object Read(object value, ProtoReader source)
 {
     return(BclHelpers.ReadNetObject(value, source, this.key, (this.type == typeof(object)) ? null : this.type, this.options));
 }
Ejemplo n.º 5
0
 public object Read(object value, ProtoReader source)
 {
     return(BclHelpers.ReadNetObject(value, source, key, type == typeof(object) ? null : type));
 }
Ejemplo n.º 6
0
 public object Read(ProtoReader source, ref ProtoReader.State state, object value)
 {
     return(BclHelpers.ReadNetObject(source, ref state, value, key, ExpectedType == typeof(object) ? null : ExpectedType, options));
 }