Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
EntryComparer Constructor (IComparer, ComparisonStyle)
EntryComparer Class See Also Send Feedback

Oracle® Coherence .NET API Reference Release 3.6
E15727-01
Construct an EntryComparer to compare entries using the provided IComparer object according to the specified comparison style.

Namespace: Tangosol.Util.Comparator
Assembly: Coherence (in Coherence.dll) Version: 3.6.0.0 (3.6.0.0)

# Syntax

C#
    public EntryComparer(
    	IComparer comparer,
    	ComparisonStyle style
    )

#### Parameters

comparer
  Type: System.Collections..::.IComparer
  The comparer to use; if not specified the "natural" comparison is used.

style
  Type: Tangosol.Util.Comparator..::.ComparisonStyle
  The comparison style to use; valid values are any of the ComparisonStyle values.

# Remarks

If the style is ComparisonStyle.Auto then the comparator type is checked: if the comparer is an instance of the KeyExtractor, ComparisonStyle.Key style will be assumed; otherwise, the ComparisonStyle.Value style is used.

# See Also

EntryComparer Class
EntryComparer Overload
Tangosol.Util.Comparator Namespace