Beispiel #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);
 }
Beispiel #2
0
        public DataStream Serialize(DataStream ds)
        {
            DataStreamIO <T> .Write(ds, Value);

            return(ds);
        }
Beispiel #3
0
        public DataStream Write <T>(T value)
        {
            DataStreamIO <T> .Write(this, value);

            return(this);
        }