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: e833b9557fa7e681c9314822c8dcd6b3fead0a88 (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
    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);
        }
    }
}