S. Peter S. Peter - 6 months ago 19
C# Question

Parse uint to positive long and have a 1 to 1 matching

Is there a safe way to parse Uint numbers into positive Long numbers and have a one to one matching between that uint and the long number??

uint i = 0;
long o = Convert.ToInt64(i);


uint i = 0;
long o = (long)i;