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
 ASP Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders

 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 

 
 
  System.Collections.CaseInsensitiveComparer Class
 
 Description
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
 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 2002 - 2016. All rights reserved.  |  Home Page