I have a library that I am using in a project. It has a class which can be instantiated as
A object = new A(new B(value), C::new, D::new);
None of the classes A, B, C, D are public, although the constructors are.
So, I want to use Reflection to achieve this. But, I can't figure out how to do method reference C::new
, D::new
using reflection.
Would appreciate any pointers on how I can do this.