jaberwacky Posted September 3, 2011 Share Posted September 3, 2011 (edited) It seems strange to me but then my .net skills are severely lacking. The language is c#. The method was found inside of a string class for a scripting language editor. public static explicit operator String(long i){ return new String(((int)(uint)i).ToString());} It seems to me that when the long is cast to a uint and then to an int a lot of information will be lost. Edited September 3, 2011 by LaCastiglione Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
jvanegmond Posted September 3, 2011 Share Posted September 3, 2011 Pretty dumb method. Should be: public static explicit operator String(long i) { return i.ToString(); } Lol. github.com/jvanegmond Link to comment Share on other sites More sharing options...
jaberwacky Posted September 3, 2011 Author Share Posted September 3, 2011 That's what I was thinking. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now