scripts
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace System.Collections.Generic
|
||||
{
|
||||
// Token: 0x02000108 RID: 264
|
||||
[Serializable]
|
||||
internal sealed class GenericEqualityComparer<T> : EqualityComparer<T> where T : IEquatable<T>
|
||||
{
|
||||
// Token: 0x06000CF2 RID: 3314 RVA: 0x00039E14 File Offset: 0x00038014
|
||||
public override int GetHashCode(T obj)
|
||||
{
|
||||
if (obj == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return obj.GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x06000CF3 RID: 3315 RVA: 0x00039E30 File Offset: 0x00038030
|
||||
public override bool Equals(T x, T y)
|
||||
{
|
||||
if (x == null)
|
||||
{
|
||||
return y == null;
|
||||
}
|
||||
return x.Equals(y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user