C# (CSharp) Castle.MonoRail.Views.Brail ExpandDuckTypedExpressions_WorkaroundForDuplicateVirtualMethods - 3 examples found. These are the top rated real world C# (CSharp) examples of Castle.MonoRail.Views.Brail.ExpandDuckTypedExpressions_WorkaroundForDuplicateVirtualMethods extracted from open source projects. You can rate examples to help us improve the quality of examples.
This is here because we need to overcome a tendecy of Dynamic Proxy to generate virtual override that do not match exactly what the compiler does. This means that when you do GetMethod("Foo") and DP has proxied it, you would get an exception because it would recognize two methods with this name. We recognize when we are trying to invoke something that DP has build and act accordingly. The code is mostly taken fro Boo.Lang.Runtime.RuntimeServices, and modified to understand that when the type is from DP, is should use DeclareOnly