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

PInvokeDelegateWrapper.Sorting.cs « IL « Interop « TypeSystem « Common « tools « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c62bc7675e5afde7367fbdc5208ab6cc069e741e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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.Interop
{
    // Functionality related to deterministic ordering of types
    partial class PInvokeDelegateWrapper
    {
        protected override int ClassCode => -262930217;

        protected override int CompareToImpl(TypeDesc other, TypeSystemComparer comparer)
        {
            return comparer.Compare(DelegateType, ((PInvokeDelegateWrapper)other).DelegateType);
        }
    }
}