System.Globalization.CompareInfo.GetCompareInfo Method

Initializes a new System.Globalization.CompareInfo object that is associated with the specified culture and that uses string comparison methods in the specified System.Reflection.Assembly.

Syntax

public static CompareInfo GetCompareInfo (string name, System.Reflection.Assembly assembly)

Parameters

name
A string representing the culture name.
assembly
An System.Reflection.Assembly that contains the string comparison methods to use.

Returns

A new System.Globalization.CompareInfo object associated with the culture with the specified identifier and using string comparison methods in the current System.Reflection.Assembly.

Remarks

Note:

The behavior of this method is unpredictable. We recommend that you use a version of this method that does not take an assembly input.

The assembly parameter must be of the same type as System.Reflection.Module.Assembly.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0