View Single Post
Old 04-14-2008, 11:03 PM   #11 (permalink)
Killamus
Forum Expert
 
Join Date: Dec 2003
Location: Sitting in a chair fulfilling my life's goal
Age: 22
Posts: 2,650
Send a message via AIM to Killamus Send a message via MSN to Killamus
Default

Quote:
Originally Posted by mordero View Post
I havent tried this at all, so I dont know how hard it would be to implement, but you could always try this:

Type: System.Reflection.Emit.MethodRental

It uses reflection to replace a method in an object.
*twitch* *twitch* *Brain explodes*

Ouch.
It looks simple enough, but I'm curious as to how I'd find the values for some of the requirements (Like the size of the method in bytes). Is there an int for that, or is it copy/paste into a text file?

Also, how exactly does one do a pointer in C#? I remember learning about it in C++, but I haven't seen it in C# yet.
__________________
Procrastinators unite!
Tomorrow.
Saying that Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
Killamus is offline   Reply With Quote