scripts
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace System.Collections.Generic
|
||||
{
|
||||
// Token: 0x020000FD RID: 253
|
||||
[Serializable]
|
||||
internal sealed class GenericComparer<T> : Comparer<T> where T : IComparable<T>
|
||||
{
|
||||
// Token: 0x06000C6E RID: 3182 RVA: 0x000385D8 File Offset: 0x000367D8
|
||||
public override int Compare(T x, T y)
|
||||
{
|
||||
if (x == null)
|
||||
{
|
||||
return (y != null) ? (-1) : 0;
|
||||
}
|
||||
if (y == null)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return x.CompareTo(y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user