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
void When(IDomainEvent e) { (this as dynamic).Apply(e); } protected void Apply(IDomainEvent e) { this.mutatingEvents.Add(e); When(e); }
This code doesn't work, it generates an StackOverflow exception due to it's infinite recursion.
The text was updated successfully, but these errors were encountered:
Ahh yes, this is the proper implementation - http://blogs.msdn.com/b/davidebb/archive/2010/01/18/use-c-4-0-dynamic-to-drastically-simplify-your-private-reflection-code.aspx
As seen here - https://github.com/gregoryyoung/m-r/blob/master/SimpleCQRS/InfrastructureCrap.DontBotherReadingItsNotImportant.cs
Sorry, something went wrong.
No branches or pull requests
This code doesn't work, it generates an StackOverflow exception due to it's infinite recursion.
The text was updated successfully, but these errors were encountered: