2010-12-04 16:14:34 +00:00
|
|
|
#ifndef _SYSTEM_COLLECTIONS_GENERIC_EQUALITYCOMPARER_
|
|
|
|
#define _SYSTEM_COLLECTIONS_GENERIC_EQUALITYCOMPARER_
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
#include <System/Object.h>
|
|
|
|
#include "Interfaces.h"
|
|
|
|
|
2010-12-04 16:14:34 +00:00
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Collections
|
|
|
|
{
|
|
|
|
namespace Generic
|
|
|
|
{
|
|
|
|
template <class T>
|
2011-11-07 01:29:50 +00:00
|
|
|
class EqualityComparer : public IEqualityComparer<T>, virtual Object
|
2010-12-04 16:14:34 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
static EqualityComparer<T> defaultComparer;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static EqualityComparer<T> Default();
|
|
|
|
|
|
|
|
bool Equals(T x, T y);
|
|
|
|
int GetHashCode(T obj);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_SYSTEM_COLLECTIONS_GENERIC_EQUALITYCOMPARER_
|