jaberwacky Posted September 3, 2011 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: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
jvanegmond Posted September 3, 2011 Posted September 3, 2011 Pretty dumb method. Should be: public static explicit operator String(long i) { return i.ToString(); } Lol. github.com/jvanegmond
jaberwacky Posted September 3, 2011 Author Posted September 3, 2011 That's what I was thinking. Helpful Posts and Websites: AutoIt Wiki | Can't find what you're looking for on the Forum? My scripts: Guiscape | Baroque AU3 Code Formatter | MouseHoverCalltips | SciTe Customization GUI | ActiveWindowTrack Toy | Monitor Configuration UDF
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