Random photo
Loading...
Domains for sale
|
May 15, 2003Hacking method namesSometimes at rainy days of our life we can found ourself looking for a way to create something impossible, say a method containing dash in its name ;) Well, if it seems to be impossible in one reality, try another one. It's impossible in C#, but it's possible in MSIL, so here is a hack:
That's it, you've created Lib.dll assembly, which contains Funny-Method(string) method in your class. Of course you can't invoke this method directly, but only through reflection, but sometimes that's enough. Oh, and last thing - it's a hack, don't use it. May 15, 2003 3:13 PM
| #.NET
Comments
Post a comment
|