예제 #1
0
 public static T?GetNullable <T>(this NetDataReader @this) where T : struct, INetSerializable
 {
     return(@this.GetNullable(reader => reader.Get <T>()));
 }
예제 #2
0
 public void Deserialize(NetDataReader reader)
 {
     AccessKey  = reader.GetKey32();
     HostKey    = reader.GetNullable <Key32>(NetDataReaderExtensions.GetKey32);
     ClientTime = reader.GetDouble();
 }