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

GetCompareInfo() public static method

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

            if (assembly!=typeof(Object).Module.Assembly) {
                throw new ArgumentException(Environment.GetResourceString("Argument_OnlyMscorlib"));
            }

            return GetCompareInfoByName(name, assembly);
        }
        

Same methods

CompareInfo::GetCompareInfo ( String name ) : 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