Jump to content

Recommended Posts

Posted (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 by LaCastiglione

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...