I have code based on methods not on the line:
internal class MyClass : BaseClass {
Of course, this only works if the DoSomething method is not built-in. That is why the base class comes from MarshallByRefObject
, which prevents the embedding of public methods.
This has worked so far, but I got the stack from the .Net 4 server, showing that stackwalk reached the DoSomething call.
Is .NET-inline smarter and discovers that MyClass is internal and has no chance of replacing its proxy?
thinkbeforecoding
source share