Пример #1
0
 public DataStream Write <T>(T?value) where T : struct
 {
     if (value == null)
     {
         DataStreamIO <T> .Write(this, default(T));
     }
     else
     {
         DataStreamIO <T> .Write(this, value.Value);
     }
     return(this);
 }
Пример #2
0
        public DataStream Serialize(DataStream ds)
        {
            DataStreamIO <T> .Write(ds, Value);

            return(ds);
        }
Пример #3
0
        public DataStream Write <T>(T value)
        {
            DataStreamIO <T> .Write(this, value);

            return(this);
        }