NanoByte.Common
Public Member Functions | Static Public Attributes | List of all members
NanoByte.Common.NamedComparer< T > Class Template Reference

Compares INamed<T> objects based on their INamed<T>.Name in a case-insensitive way. More...

Inheritance diagram for NanoByte.Common.NamedComparer< T >:

Public Member Functions

int Compare (T x, T y)
 
bool Equals (T x, T y)
 
int GetHashCode (T obj)
 

Static Public Attributes

static readonly NamedComparer< T > Instance = new NamedComparer<T>()
 A singleton instance of the comparer. More...
 

Detailed Description

Compares INamed<T> objects based on their INamed<T>.Name in a case-insensitive way.

Type Constraints
T :INamed<T> 

Member Data Documentation

◆ Instance

readonly NamedComparer<T> NanoByte.Common.NamedComparer< T >.Instance = new NamedComparer<T>()
static

A singleton instance of the comparer.


The documentation for this class was generated from the following file: