GetHashCode() 공개 메소드

public GetHashCode ( Object o ) : int
o Object
리턴 int
예제 #1
0
        public virtual int GetHashCode(object o) {
            string obj = o as string;
            if (obj == null) {
                return o.GetHashCode();
            }

            return BackCompatibleStringComparer.GetHashCode(obj);
        }
        public virtual int GetHashCode(object o)
        {
            if (!(o is string obj))
            {
                return(o.GetHashCode());
            }

            return(BackCompatibleStringComparer.GetHashCode(obj));
        }