How to Dynamically obtain the Constructors of a Class ?
Posted: Wed Aug 03, 2011 2:47 pm
According to this Article it is possible to obtain the constructors of a class at run-time using reflection. From my understanding this should work:
I should get a 'ConstructorInfo' structure but instead I am getting the message: #.[System.RuntimeType] . ∇GetConstructors
What is the meaning of this message ? What is the correct procedure with reflection ? Is there is a way to get that directly from APL using a quad ?
Thanks,
Pierre Gilbert
Code: Select all
⎕USING←,⊂'System'
DT←⎕NEW DateTime (2000 1 1)
DT.GetType.GetConstructors
#.[System.RuntimeType] . ∇GetConstructors
I should get a 'ConstructorInfo' structure but instead I am getting the message: #.[System.RuntimeType] . ∇GetConstructors
What is the meaning of this message ? What is the correct procedure with reflection ? Is there is a way to get that directly from APL using a quad ?
Thanks,
Pierre Gilbert