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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/src/TypeSystem/IL/Stubs/CalliMarshallingMethodThunk.Sorting.cs')
-rw-r--r--src/Common/src/TypeSystem/IL/Stubs/CalliMarshallingMethodThunk.Sorting.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Common/src/TypeSystem/IL/Stubs/CalliMarshallingMethodThunk.Sorting.cs b/src/Common/src/TypeSystem/IL/Stubs/CalliMarshallingMethodThunk.Sorting.cs
new file mode 100644
index 000000000..2ac126d11
--- /dev/null
+++ b/src/Common/src/TypeSystem/IL/Stubs/CalliMarshallingMethodThunk.Sorting.cs
@@ -0,0 +1,20 @@
+// 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 methods
+ partial class CalliMarshallingMethodThunk
+ {
+ protected internal override int ClassCode => 1594107963;
+
+ protected internal override int CompareToImpl(MethodDesc other, TypeSystemComparer comparer)
+ {
+ var otherMethod = (CalliMarshallingMethodThunk)other;
+ return comparer.Compare(_targetSignature, otherMethod._targetSignature);
+ }
+ }
+}