class AClass { void Private() { } public Action Publish() { return Private; } } class Program { static void Main(string[] args) { var anInstance = new AClass(); var publishedInstance = anInstance.Publish(); publishedInstance(); } }
Sunday, October 31, 2010
How to publish a private method at runtime?
Here's how:
Subscribe to:
Posts (Atom)