public bool Equals(DataServerInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Name, Name) && Equals(other.Address, Address) && other.Port == Port); }
public override void ReadBytes(byte[] buffer, int offset) { StartR(buffer, offset); ClientId = _br.ReadString(); int count = _br.ReadInt32(); ConnectionType = _br.ReadInt32(); DataServers = new DataServerInfo[count]; for (int i = 0; i < count; i++) { DataServers[i] = new DataServerInfo { Name = _br.ReadString(), Address = _br.ReadString(), Port = _br.ReadInt32() }; } StopR(); }