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

Commit

Permalink
Parse(string, IFormatProvider) override added.
Browse files Browse the repository at this point in the history
  • Loading branch information
iskiselev committed Oct 4, 2015
1 parent 7cf2a8e commit 0c8daa5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ $jsilcore.$MakeParseExternals = function ($, type, parse, tryParse) {
parse
);

$.Method({ Static: true, Public: true }, "Parse",
(new JSIL.MethodSignature(type, [$.String, $jsilcore.TypeRef("System.IFormatProvider")], [])),
function (input, formatProvider) {
// TODO: Really use fromat provider
return parse(input, null);
}
);

$.Method({ Static: true, Public: true }, "TryParse",
(new JSIL.MethodSignature($.Boolean, [$.String, $jsilcore.TypeRef("JSIL.Reference", [type])], [])),
tryParse
Expand Down

0 comments on commit 0c8daa5

Please sign in to comment.