Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (41 sloc) 1.187 kb
using System;
using System.Collections.Generic;
using System.Text;
namespace Enyim.Caching
/// <summary>
/// A fast comparer for dictionaries indexed by UInt. Faster than using Comparer.Default
/// </summary>
public sealed class UIntEqualityComparer : IEqualityComparer<uint>
bool IEqualityComparer<uint>.Equals(uint x, uint y)
return x == y;
int IEqualityComparer<uint>.GetHashCode(uint value)
return value.GetHashCode();
#region [ License information ]
/* ************************************************************
* Copyright (c) Attila Kiskó,
* This source code is subject to terms and conditions of
* Microsoft Permissive License (Ms-PL).
* A copy of the license can be found in the License.html
* file at the root of this distribution. If you can not
* locate the License, please send an email to
* By using this source code in any fashion, you are
* agreeing to be bound by the terms of the Microsoft
* Permissive License.
* You must not remove this notice, or any other, from this
* software.
* ************************************************************/
Jump to Line
Something went wrong with that request. Please try again.