WriteValue() 개인적인 메소드

private WriteValue ( InternalPrimitiveTypeE code, Object value ) : void
code InternalPrimitiveTypeE
value Object
리턴 void
예제 #1
0
 internal static void WriteWithCode(Type type, object value, __BinaryWriter sout)
 {
     if (type == null)
     {
         sout.WriteByte(0x11);
     }
     else if (object.ReferenceEquals(type, Converter.typeofString))
     {
         WriteStringWithCode((string)value, sout);
     }
     else
     {
         InternalPrimitiveTypeE code = Converter.ToCode(type);
         sout.WriteByte((byte)code);
         sout.WriteValue(code, value);
     }
 }
예제 #2
0
        // Token: 0x0600529C RID: 21148 RVA: 0x0012229C File Offset: 0x0012049C
        internal static void WriteWithCode(Type type, object value, __BinaryWriter sout)
        {
            if (type == null)
            {
                sout.WriteByte(17);
                return;
            }
            if (type == Converter.typeofString)
            {
                IOUtil.WriteStringWithCode((string)value, sout);
                return;
            }
            InternalPrimitiveTypeE internalPrimitiveTypeE = Converter.ToCode(type);

            sout.WriteByte((byte)internalPrimitiveTypeE);
            sout.WriteValue(internalPrimitiveTypeE, value);
        }
 internal static void WriteWithCode(Type type, object value, __BinaryWriter sout)
 {
     if (type == null)
     {
         sout.WriteByte(0x11);
     }
     else if (object.ReferenceEquals(type, Converter.typeofString))
     {
         WriteStringWithCode((string) value, sout);
     }
     else
     {
         InternalPrimitiveTypeE code = Converter.ToCode(type);
         sout.WriteByte((byte) code);
         sout.WriteValue(code, value);
     }
 }
 public  void Write(__BinaryWriter sout)
 { 
     sout.WriteValue(typeInformation, value); 
 }
 public  void Write(__BinaryWriter sout)
 { 
     sout.WriteByte((Byte)BinaryHeaderEnum.MemberPrimitiveTyped);
     sout.WriteByte((Byte)primitiveTypeEnum); //pdj 
     sout.WriteValue(primitiveTypeEnum, value); 
 }
 internal static void WriteWithCode(Type type, Object value, __BinaryWriter sout)
 {
     if ((object)type == null)
         sout.WriteByte((Byte)InternalPrimitiveTypeE.Null); 
     else if (Object.ReferenceEquals(type, Converter.typeofString))
         WriteStringWithCode((String)value, sout); 
     else 
     {
         InternalPrimitiveTypeE code = Converter.ToCode(type); 
         sout.WriteByte((Byte)code);
         sout.WriteValue(code, value);
     }
 } 
 // Token: 0x060052F7 RID: 21239 RVA: 0x00123B64 File Offset: 0x00121D64
 public void Write(__BinaryWriter sout)
 {
     sout.WriteValue(this.typeInformation, this.value);
 }
예제 #8
0
 // Token: 0x060052DF RID: 21215 RVA: 0x0012330E File Offset: 0x0012150E
 public void Write(__BinaryWriter sout)
 {
     sout.WriteByte(8);
     sout.WriteByte((byte)this.primitiveTypeEnum);
     sout.WriteValue(this.primitiveTypeEnum, this.value);
 }
 public void Write(__BinaryWriter sout)
 {
     sout.WriteByte(8);
     sout.WriteByte((byte) this.primitiveTypeEnum);
     sout.WriteValue(this.primitiveTypeEnum, this.value);
 }