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

  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 

 Articles and Tutorials

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

 Author links

 Buy Website Traffic at

 Buy Proxies at

  System.Collections.CaseInsensitiveComparer Class
Calling writeTextBlock 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. After writeTextBlock
Constructor Create ( Culture : CultureInfo );
Compare  Compares one Object value with another without case sensitivity

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
Delphi Programming Neil Moffatt 2002 - 2016. All rights reserved.  |  Home Page