blob: 3de11f8d63484dc4f24a3eb3b1ebec7d0b54ca93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Internal.TypeSystem
{
// Functionality related to deterministic ordering of types
public partial class MethodForInstantiatedType
{
protected internal override int ClassCode => 1359759636;
protected internal override int CompareToImpl(MethodDesc other, TypeSystemComparer comparer)
{
var otherMethod = (MethodForInstantiatedType)other;
int result = comparer.CompareWithinClass(_instantiatedType, otherMethod._instantiatedType);
if (result != 0)
return result;
return comparer.Compare(_typicalMethodDef, otherMethod._typicalMethodDef);
}
}
}
|