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