System.Collections.Specialized.BackCompatibleStringComparer.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( Object o ) : int
o Object
return int
        public virtual int GetHashCode(Object o) {
            String obj = o as string;
            if (obj == null) {
                return o.GetHashCode();
            }

            return BackCompatibleStringComparer.GetHashCode(obj);
        }
    }

Same methods

BackCompatibleStringComparer::GetHashCode ( string obj ) : int

Usage Example

Ejemplo n.º 1
0
        public virtual int GetHashCode(object o) {
            string obj = o as string;
            if (obj == null) {
                return o.GetHashCode();
            }

            return BackCompatibleStringComparer.GetHashCode(obj);
        }
All Usage Examples Of System.Collections.Specialized.BackCompatibleStringComparer::GetHashCode