Пример #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();
 }