We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created a MethodInvoker for DateTime.ToString(). When I call this as Invoker(DateTime.Now, null), I get this exception:
System.InvalidCastException: 'Unable to cast object of type 'System.DateTime' to type 'Fasterflect.Emitter.ValueTypeHolder'.'
Am I doing something wrong, or is this a bug in Fasterflect?
The text was updated successfully, but these errors were encountered:
Method WrapIfValueType solves the problem. Code
WrapIfValueType
DateTime.Now.WrapIfValueType().CallMethod("ToString")
works for me. Very strange, I cannot find any docs about the method and type ValueTypeHolder.
ValueTypeHolder
Sorry, something went wrong.
No branches or pull requests
I created a MethodInvoker for DateTime.ToString(). When I call this as Invoker(DateTime.Now, null), I get this exception:
Am I doing something wrong, or is this a bug in Fasterflect?
The text was updated successfully, but these errors were encountered: