blob: 2aeab414f4aad71046ec5ae34c078ce5197b025d (
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
partial class MethodForRuntimeDeterminedType
{
protected internal override int ClassCode => 719937490;
protected internal override int CompareToImpl(MethodDesc other, TypeSystemComparer comparer)
{
var otherMethod = (MethodForRuntimeDeterminedType)other;
int result = comparer.CompareWithinClass(_rdType, otherMethod._rdType);
if (result != 0)
return result;
return comparer.Compare(_typicalMethodDef, otherMethod._typicalMethodDef);
}
}
}
|