Open GoogleCodeExporter opened 8 years ago
Intersting, the code for CharEnumerator is here:
https://github.com/SharpKit/SharpKit-SDK/blob/master/Frameworks/JsClr/System/Str
ingEnumerator.cs
But I'll check it out too.
Original comment by DanelK...@gmail.com
on 25 Aug 2014 at 3:42
Thanks Danel. In my jsclr.js I find this:
var System$CharEnumerator = {
fullname: "System.CharEnumerator",
baseTypeName: "System.Object",
assemblyName: "SharpKit.JsClr",
interfaceNames: ["System.Collections.Generic.IEnumerator$1", "System.Collections.IEnumerator"],
Kind: "Class",
definition: {
ctor: function (str2){
...
and then this:
String.prototype._toString = String.prototype.toString;
JsTypes.push({ fullname: "System.String", baseTypeName: "System.Object",
definition:
{
ctor: String,
GetEnumerator: function () {
return new System.CharEnumerator.ctor$$String(this);
},
...
when that String.GetEnumerator gets called, it throws because the constructor's
name is "ctor" and not "ctor$$String".
Original comment by filp...@tin.it
on 25 Aug 2014 at 3:53
Original issue reported on code.google.com by
filp...@tin.it
on 25 Aug 2014 at 3:21