Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

Commit 6257038

Browse files
committed
Corrected metod definition for JSIL.DefaultComparer.
1 parent d4efbe4 commit 6257038

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

JSIL.Libraries/Includes/Bootstrap/Core/Classes/JSIL.DefaultComparer.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function ($) {
55
var T = new JSIL.GenericParameter("T", "JSIL.DefaultComparer`1");
66

7-
$.Method({}, "Compare",
7+
$.Method({ Static: false, Public: true, Virtual: true }, "Compare",
88
new JSIL.MethodSignature($.Int32, [T, T], []),
99
function Compare(lhs, rhs) {
1010
if (lhs === null) {
@@ -26,5 +26,12 @@
2626
return 0;
2727
}
2828
);
29+
30+
$.ImplementInterfaces(
31+
$jsilcore.TypeRef("System.Collections.IComparer"),
32+
$jsilcore.TypeRef("System.Collections.Generic.IComparer`1", [
33+
new JSIL.GenericParameter("T", "JSIL.DefaultComparer`1")
34+
])
35+
);
2936
}
3037
);

0 commit comments

Comments
 (0)