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

FunctionPointerType.Sorting.cs « Sorting « TypeSystem « Common « tools « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5bcbb190d890f45a6644dcac5d056142f0c07757 (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
{
    // Functionality related to deterministic ordering of types
    public partial class FunctionPointerType
    {
        protected internal override int ClassCode => -914739489;

        protected internal sealed override int CompareToImpl(TypeDesc other, TypeSystemComparer comparer)
        {
            return _signature.CompareTo(((FunctionPointerType)other)._signature, comparer);
        }
    }
}