Version 2.1.0.0

DictionaryKeyUtility.KeyComparer<T> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class KeyComparer<T> : IComparer<T>
A smart comparer for dictionary keys, that uses the most appropriate available comparison method for the given key types.
Inheritance
  • System.Object
  • DictionaryKeyUtility.KeyComparer<T>

Type Parameters

T

Constructors

KeyComparer()
public KeyComparer()

Fields

Default
public static readonly DictionaryKeyUtility.KeyComparer<T> Default

Methods

Compare(T, T)
Not yet documented.
public int Compare(T x, T y)
Parameters
T x

Not yet documented.

T y

Not yet documented.

Returns
System.Int32

Not yet documented.

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.