GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int
예제 #1
0
 public bool Equals(Ssm2Packet p)
 {
     if (p == null)
     {
         return(false);
     }
     return(this.GetHashCode() == p.GetHashCode());
 }
예제 #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());
        }
예제 #3
0
파일: Ssm2Packet.cs 프로젝트: src0x/LibSSM2
 public bool Equals(Ssm2Packet p)
 {
     if (p == null)
         return false;
     return (this.GetHashCode () == p.GetHashCode ());
 }