-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling a private constructor using Albedo #95
Comments
If you know that you want to call a constructor, then I think using The purpose of Albedo is to provide a common abstraction over Reflection, enabling you to treat e.g. fields and properties alike. If you don't need the abstraction, the standard Reflection API is probably easier. I feel that I'm misunderstanding the question, however, but I can't quite figure out what the real question is... Can you elaborate? |
Hi Mark, That’s what I’m doing currently! From: Mark Seemann [mailto:[email protected]] If you know that you want to call a constructor, then I think using ConstructorInfo.Invoke would be the easiest way. The purpose of Albedo is to provide a common abstraction over Reflection, enabling you to treat e.g. fields and properties alike. If you don't need the abstraction, the standard Reflection API is probably easier. I feel that I'm misunderstanding the question, however, but I can't quite figure out what the real question is... Can you elaborate? — |
The answer, in this case, is no. Do you have any other concerns, or can we close the issue? |
Ok, you can close this, it would be a nice to have though! From: Mark Seemann [mailto:[email protected]] The answer, in this case, is no. Do you have any other concerns, or can we close the issue? — |
I'm still not sure I understand what it is that you'd like to have... 😳 |
The ability to visit and call constructors. From: Mark Seemann [mailto:[email protected]] it would be a nice to have though! I'm still not sure I understand what it is that you'd like to have... 😳 — |
You can already visit constructors... |
Hi,
What is the easiest way of calling a constructor with parameters using Albedo?
calling methods doesn't seem to be covered in the read me.
Help appreciated as always.
Cheers
Sean.
The text was updated successfully, but these errors were encountered: