mirror of
https://github.com/AssetRipper/Cpp2IL.git
synced 2026-11-13 20:05:45 -10:00
12 lines
340 B
C#
12 lines
340 B
C#
using System.Collections.Generic;
|
|
|
|
namespace LibCpp2IL;
|
|
|
|
public class TokenComparer : IComparer<IIl2CppTokenProvider>
|
|
{
|
|
public int Compare(IIl2CppTokenProvider? x, IIl2CppTokenProvider? y) =>
|
|
ReferenceEquals(x, y) ? 0
|
|
: ReferenceEquals(x, null) ? 0
|
|
: ReferenceEquals(y, null) ? 0 : x.Token.CompareTo(y.Token);
|
|
}
|