Beispiel #1
0
 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));
 }
Beispiel #2
0
 public int CompareTo(IMessageVersionIdentification obj)
 {
     return(CompareTo((object)obj));
 }
Beispiel #3
0
 public bool Equals(IMessageVersionIdentification obj)
 {
     return(Equals((object)obj));
 }