View Single Post
  #6  
Old 10-07-2008, 02:12 PM
ender ender is offline
Member
 
Join Date: Oct 2008
Posts: 9
Default

Quote:
Originally Posted by LibX View Post
Why dont u just push the ascii value of the char u need and cast it to a char?
I don't think you can cast a value (the cast instruction requires an object reference). However, pushing the appropriate ascii value and boxing it to a char seems to do the trick. Thanks for the suggestion

That being said, I'm still curious about using the metadata streams (or some other method) to accomplish this because pushing an ascii value and boxing it still takes up more bytes (7 bytes total) than the method calls i want to replace. It would be ideal if i could use a piece of code that was 5 bytes or less, so I can just do a find and replace rather than have to replace the method calls by hand one at a time due to the likelihood of overwriting something important.
__________________
if you build a man a fire he will be warm for a day; if you set a man on fire he will be warm for the rest of his life. :rolleyes:

Last edited by ender : 10-07-2008 at 02:22 PM.
Reply With Quote