Skip to content

T_CodeJam_Strings_NaturalOrderStringComparer

Andrew Koryavchenko edited this page Jun 17, 2018 · 6 revisions

NaturalOrderStringComparer Class

String comparisons using a "natural order" algorithm.

Inheritance Hierarchy

System.Object
  CodeJam.Strings.NaturalOrderStringComparer
Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public class NaturalOrderStringComparer : IComparer<string>

VB

Public Class NaturalOrderStringComparer
	Implements IComparer(Of String)

F#

type NaturalOrderStringComparer =  
    class
        interface IComparer<string>
    end

The NaturalOrderStringComparer type exposes the following members.

Methods

 

Name Description
Public methodStatic member Compare(String, String) Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Public methodStatic member Compare(String, String, Boolean) Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Fields

 

Name Description
Public fieldStatic member Comparer Gets a NaturalOrderStringComparer object that performs a string comparison using a "natural order" algorithm.
Public fieldStatic member Comparison Gets a Comparison(T) delegate that performs a string comparison using a "natural order" algorithm.
Public fieldStatic member IgnoreCaseComparer Gets a NaturalOrderStringComparer object that performs a case-insensitive string comparison using a "natural order" algorithm.
Public fieldStatic member IgnoreCaseComparison Gets a Comparison(T) delegate that performs a case-insensitive string comparison using a "natural order" algorithm.
  Back to Top

See Also

Reference

CodeJam.Strings Namespace

Clone this wiki locally