S. Peter S. Peter - 1 year ago 49
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??

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


uint i = 0;
long o = (long)i;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download