DelphiBasics
  Home  |  Delphi .net Home  |  System.Collections NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 
  ArrayList  Class 
  BitArray  Class 
  CaseInsensitiveComparer  Class 
  Comparer  Class 
  DictionaryEntry  Structure 
  HashTable  Class 
  ICollection  Interface 
  IComparer  Interface 
  IDictionary  Interface 
  IDictionaryEnumerator  Interface 
  IEnumerator  Interface 
  IList  Interface 
  Queue  Class 
  SortedList  Class 
  Stack  Class 
 System.Globalization
 System.IO

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 php Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders


 
 
  System.Collections.CaseInsensitiveComparer Class
 
 Description
the Comparer class provides a Case-Insensitive mechanism for comparing Objects. It is principally used in sort processes, where elements must be cmopared to determine their ordering.
 
It is the default class used by Sort and BinarySearch methods in the System.Array and System.Collections.ArrayList classes.
 
Because string comparisons are affected by different languages, the CaseInsensitiveComparer constructor requires a CultureInfo object that defines this cultural information.
 
Returns one of the following values :
 
ValueA < ValueB Gives <0
ValueA = ValueB Gives 0
ValueA > ValueB Gives >0

 
The exact value is not guaranteed.
 Syntax
Constructor Create ( Culture : CultureInfo; );
 Methods
Compare  Compares one Object value with another without case sensitivity

 Fields
Default    Represents an instance of CaseInsensitiveComparer that is associated with the Thread.CurrentCulture of the current thread. This field is read-only.
DefaultInvariant    Represents an instance of CaseInsensitiveComparer that is associated with CultureInfo.InvariantCulture. This field is read-only.

 Microsoft MSDN links
 
System.Collections
System.Collections.caseinsensitivecomparer
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page