public IDataObject Read(PacketReader r) { Id = r.ReadByte(); if (IsStringData()) StringValue = r.ReadString(); else IntValue = r.ReadInt32(); return this; }
public IDataObject Read(PacketReader r) { Id = r.ReadByte(); if (IsStringData()) { StringValue = r.ReadString(); } else { IntValue = r.ReadInt32(); } return(this); }