System.Globalization.CompareInfo.GetCompareInfo C# (CSharp) Method

GetCompareInfo() public static method

public static GetCompareInfo ( String name ) : CompareInfo
name String
return CompareInfo
        public static CompareInfo GetCompareInfo(String name) {
            if (name == null) {
                throw new ArgumentNullException("name");
            }

            return GetCompareInfoByName(name, null);
        }

Same methods

CompareInfo::GetCompareInfo ( String name, Assembly assembly ) : CompareInfo
CompareInfo::GetCompareInfo ( int culture ) : CompareInfo
CompareInfo::GetCompareInfo ( int culture, Assembly assembly ) : CompareInfo

Usage Example

Beispiel #1
0
 ////////////////////////////////////////////////////////////////////////
 //
 //  GetHashCode
 //
 //  Implements Object.GetHashCode().  Returns the hash code for the
 //  SortKey.  The hash code is guaranteed to be the same for
 //  SortKey A and B where A.Equals(B) is true.
 //
 ////////////////////////////////////////////////////////////////////////
 public override int GetHashCode()
 {
     return(CompareInfo.GetCompareInfo(
                this.localeName).GetHashCodeOfString(this.m_String, this.options));
 }
All Usage Examples Of System.Globalization.CompareInfo::GetCompareInfo