GetHashCode() public method

public GetHashCode ( ) : int
return int
Exemplo n.º 1
0
 public bool Equals(Ssm2Packet p)
 {
     if (p == null)
     {
         return(false);
     }
     return(this.GetHashCode() == p.GetHashCode());
 }
Exemplo n.º 2
0
        // overriding Equals, GetHashCode etc. not necessary
        // but provide much better performance if used

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            Ssm2Packet p = obj as Ssm2Packet;

            if (p == null)
            {
                return(false);
            }

            // Return true if the data matches:
            return(this.GetHashCode() == p.GetHashCode());
        }
Exemplo n.º 3
0
 public bool Equals(Ssm2Packet p)
 {
     if (p == null)
         return false;
     return (this.GetHashCode () == p.GetHashCode ());
 }