Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DelegateThunks.Sorting.cs « Stubs « IL « TypeSystem « src « Common « src - github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d921c9c3b97dcdc9c983382614a1f7bb8bd540a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Internal.TypeSystem;

namespace Internal.IL.Stubs
{
    // Functionality related to deterministic ordering of types
    partial class DelegateThunk
    {
        protected internal override int CompareToImpl(MethodDesc other, TypeSystemComparer comparer)
        {
            var otherMethod = (DelegateThunk)other;
            return comparer.Compare(_delegateInfo.Type, otherMethod._delegateInfo.Type);
        }
    }

    partial class DelegateInvokeOpenStaticThunk
    {
        protected internal override int ClassCode => 386356101;
    }

    public sealed partial class DelegateInvokeOpenInstanceThunk
    {
        protected internal override int ClassCode => -1787190244;
    }

    partial class DelegateInvokeClosedStaticThunk
    {
        protected internal override int ClassCode => 28195375;
    }

    partial class DelegateInvokeMulticastThunk
    {
        protected internal override int ClassCode => 639863471;
    }

    partial class DelegateInvokeInstanceClosedOverGenericMethodThunk
    {
        protected internal override int ClassCode => -354480633;
    }

    partial class DelegateReversePInvokeThunk
    {
        protected internal override int ClassCode => -1626386052;
    }

    partial class DelegateInvokeObjectArrayThunk
    {
        protected internal override int ClassCode => 1993292344;
    }

    partial class DelegateGetThunkMethodOverride
    {
        protected internal override int ClassCode => -321263379;

        protected internal override int CompareToImpl(MethodDesc other, TypeSystemComparer comparer)
        {
            var otherMethod = (DelegateGetThunkMethodOverride)other;
            return comparer.Compare(_delegateInfo.Type, otherMethod._delegateInfo.Type);
        }
    }
}