Just from imperfect memory, sometimes we need an explicit ⍬ to invoke niladic C# functions from APL
and sometimes we don't. Maybe when the function is a Property or there is not an overload,
Code: Select all
DT.GetType.GetConstructors⍬
Void .ctor(Int64) Void .ctor(Int64, System.DateTimeKind) Void .ctor(Int32, Int32, Int32) Void .ctor(Int32, Int32, Int32, System.Globalization.Calendar) Void .ctor(
Int32, Int32, Int32, Int32, Int32, Int32) Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, System.DateTimeKind) Void .ctor(Int32, Int32, Int32, Int32, Int32
, Int32, System.Globalization.Calendar) Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32) Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32,
System.DateTimeKind) Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32, System.Globalization.Calendar) Void .ctor(Int32, Int32, Int32, Int32, Int32, In
t32, Int32, System.Globalization.Calendar, System.DateTimeKind)
⍴ DT.GetType.GetConstructors⍬
11
11 1 ⍴ DT.GetType.GetConstructors⍬
Void .ctor(Int64)
Void .ctor(Int64, System.DateTimeKind)
Void .ctor(Int32, Int32, Int32)
Void .ctor(Int32, Int32, Int32, System.Globalization.Calendar)
Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32)
Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, System.DateTimeKind)
Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, System.Globalization.Calendar)
Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32, System.DateTimeKind)
Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32, System.Globalization.Calendar)
Void .ctor(Int32, Int32, Int32, Int32, Int32, Int32, Int32, System.Globalization.Calendar, System.DateTimeKind)
The InvokeOverload function posts and Generic Type construction may help some.