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

GetSortKey() public method

public GetSortKey ( String source, CompareOptions options ) : SortKey
source String
options CompareOptions
return SortKey
        public unsafe virtual SortKey GetSortKey(String source, CompareOptions options)
        {

            // SortKey() will check the parameters and validate them accordingly.
            
            return (new SortKey(m_pSortingTable, this.m_sortingLCID, source, options)); 
        }
    

Same methods

CompareInfo::GetSortKey ( String source ) : SortKey

Usage Example

Example #1
0
	void AssertSortKey (string message, byte [] expected, string test, CompareOptions opt, CompareInfo ci)
	{
		byte [] actual = ci.GetSortKey (test, opt).KeyData;
		Assert.AreEqual (expected, actual, message);
	}
All Usage Examples Of System.Globalization.CompareInfo::GetSortKey