예제 #1
0
 /**
  * <summary>Write date.</summary>
  */
 private static void WriteDate(PortableWriterImpl ctx, object obj)
 {
     WriteDateTyped(ctx.Stream, (DateTime?)obj);
 }
예제 #2
0
 /**
  * <summary>Write double.</summary>
  */
 private static void WriteDouble(PortableWriterImpl ctx, object obj)
 {
     WriteDoubleTyped(ctx.Stream, (double)obj);
 }
예제 #3
0
 /**
  * <summary>Write decimal.</summary>
  */
 private static void WriteDecimal(PortableWriterImpl ctx, object obj)
 {
     WriteDecimalTyped(ctx.Stream, (decimal)obj);
 }
예제 #4
0
 /**
  * <summary>Write long.</summary>
  */
 private static void WriteLong(PortableWriterImpl ctx, object obj)
 {
     WriteLongTyped(ctx.Stream, (long)obj);
 }
예제 #5
0
 /**
  * <summary>Write float.</summary>
  */
 private static void WriteFloat(PortableWriterImpl ctx, object obj)
 {
     WriteFloatTyped(ctx.Stream, (float)obj);
 }
예제 #6
0
 /**
  * <summary>Write char.</summary>
  */
 private static void WriteChar(PortableWriterImpl ctx, object obj)
 {
     WriteCharTyped(ctx.Stream, (char)obj);
 }
예제 #7
0
 /**
  * <summary>Write int.</summary>
  */
 private static void WriteInt(PortableWriterImpl ctx, object obj)
 {
     WriteIntTyped(ctx.Stream, (int)obj);
 }
예제 #8
0
 /**
  * <summary>Write byte.</summary>
  */
 private static void WriteByte(PortableWriterImpl ctx, object obj)
 {
     WriteByteTyped(ctx.Stream, (byte)obj);
 }
예제 #9
0
 /**
  * <summary>Write short.</summary>
  */
 private static void WriteShort(PortableWriterImpl ctx, object obj)
 {
     WriteShortTyped(ctx.Stream, (short)obj);
 }
예제 #10
0
 /**
  * <summary>Write boolean.</summary>
  */
 private static void WriteBool(PortableWriterImpl ctx, object obj)
 {
     WriteBoolTyped(ctx.Stream, (bool)obj);
 }
예제 #11
0
        /// <summary>
        /// Write enum.
        /// </summary>
        private static void WriteEnum(PortableWriterImpl ctx, object obj)
        {
            ctx.Stream.WriteByte(PortableUtils.TypeEnum);

            PortableUtils.WriteEnum(ctx.Stream, (Enum)obj);
        }
예제 #12
0
        /**
         * <summary>Write portable object.</summary>
         */
        private static void WritePortable(PortableWriterImpl ctx, object obj)
        {
            ctx.Stream.WriteByte(PortableUtils.TypePortable);

            PortableUtils.WritePortable(ctx.Stream, (PortableUserObject)obj);
        }
예제 #13
0
        /**
         * <summary>Write map entry.</summary>
         */
        private static void WriteMapEntry(PortableWriterImpl ctx, object obj)
        {
            ctx.Stream.WriteByte(PortableUtils.TypeMapEntry);

            PortableUtils.WriteMapEntry(ctx, (DictionaryEntry)obj);
        }
예제 #14
0
        /**
         * <summary>Write Hashtable.</summary>
         */
        private static void WriteHashtable(PortableWriterImpl ctx, object obj)
        {
            ctx.Stream.WriteByte(PortableUtils.TypeDictionary);

            PortableUtils.WriteTypedDictionary((IDictionary)obj, ctx, PortableUtils.MapHashMap);
        }