ReadValue() private method

private ReadValue ( InternalPrimitiveTypeE code ) : Object
code InternalPrimitiveTypeE
return Object
        internal static object ReadWithCode(__BinaryParser input)
        {
            InternalPrimitiveTypeE code = (InternalPrimitiveTypeE) input.ReadByte();
            switch (code)
            {
                case InternalPrimitiveTypeE.Null:
                    return null;

                case InternalPrimitiveTypeE.String:
                    return input.ReadString();
            }
            return input.ReadValue(code);
        }
        internal static object ReadWithCode(__BinaryParser input)
        {
            InternalPrimitiveTypeE code = (InternalPrimitiveTypeE)input.ReadByte();

            switch (code)
            {
            case InternalPrimitiveTypeE.Null:
                return(null);

            case InternalPrimitiveTypeE.String:
                return(input.ReadString());
            }
            return(input.ReadValue(code));
        }
        // Token: 0x0600529D RID: 21149 RVA: 0x001222E4 File Offset: 0x001204E4
        internal static object ReadWithCode(__BinaryParser input)
        {
            InternalPrimitiveTypeE internalPrimitiveTypeE = (InternalPrimitiveTypeE)input.ReadByte();

            if (internalPrimitiveTypeE == InternalPrimitiveTypeE.Null)
            {
                return(null);
            }
            if (internalPrimitiveTypeE == InternalPrimitiveTypeE.String)
            {
                return(input.ReadString());
            }
            return(input.ReadValue(internalPrimitiveTypeE));
        }
 [System.Security.SecurityCritical] // implements Critical method
 public void Read(__BinaryParser input)
 {
     //binaryHeaderEnum = input.ReadByte(); already read 
     value = input.ReadValue(typeInformation);
 } 
 [System.Security.SecurityCritical] // implements Critical method
 public void Read(__BinaryParser input)
 {
     primitiveTypeEnum = (InternalPrimitiveTypeE)input.ReadByte(); //PDJ 
     value = input.ReadValue(primitiveTypeEnum);
 } 
 internal static Object ReadWithCode(__BinaryParser input) 
 { 
      InternalPrimitiveTypeE code = (InternalPrimitiveTypeE)input.ReadByte();
      if (code == InternalPrimitiveTypeE.Null) 
          return null;
      else if (code == InternalPrimitiveTypeE.String)
          return input.ReadString();
      else 
          return input.ReadValue(code);
 } 
 public void Read(__BinaryParser input)
 {
     this.value = input.ReadValue(this.typeInformation);
 }
Example #8
0
 public void Read(__BinaryParser input)
 {
     this.primitiveTypeEnum = (InternalPrimitiveTypeE)input.ReadByte();
     this.value             = input.ReadValue(this.primitiveTypeEnum);
 }
 public void Read(__BinaryParser input)
 {
     this.primitiveTypeEnum = (InternalPrimitiveTypeE) input.ReadByte();
     this.value = input.ReadValue(this.primitiveTypeEnum);
 }
 public void Read(__BinaryParser input)
 {
     this.value = input.ReadValue(this.typeInformation);
 }