Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fbd014

Browse files
committed
fixup! fixup! (wip) MaybeType, a more specialized helper
1 parent 15b87de commit 6fbd014

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/runtime/classobject.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ internal class ClassObject : ClassBase
1717

1818
internal ClassObject(Type tp) : base(tp)
1919
{
20-
ctors_len = type.Value.GetConstructors().Length;
21-
//ctors_len = type.GetConstructors().Length;
20+
var _ctors = type.Value.GetConstructors();
21+
ctors_len = _ctors.Length;
2222
binder = new ConstructorBinder(type);
23+
foreach (ConstructorInfo t in _ctors)
24+
{
25+
binder.AddMethod(t);
26+
}
2327
}
2428

2529

0 commit comments

Comments
 (0)