protected BaseMessage(SerializationInfo info, StreamingContext context) { if (info == null) { return; } To = info.GetValue <IPeerIdentification>(nameof(To)); From = info.GetValue <IPeerIdentification>(nameof(From)); Type = info.GetValue <IMessageTypeIdentification>(nameof(Type)); Version = info.GetValue <IMessageVersionIdentification>(nameof(Version)); }
public int CompareTo(IMessageVersionIdentification obj) { return(CompareTo((object)obj)); }
public bool Equals(IMessageVersionIdentification obj) { return(Equals((object)obj)); }