Sign in to follow this  
Followers 0

Does this method seem strange to you?

3 posts in this topic

#1 ·  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

Share this post

Link to post
Share on other sites

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
Sign in to follow this  
Followers 0