Check the value range and size for unsigned long in CSharp
Description
The following code shows how to check the value range and size for unsigned long.
Example
using System;//from www .j a v a 2s. c o m
public class MainClass
{
public static void Main()
{
Console.WriteLine("{0}: bytes: {1}, range: [{2},{3}]",
typeof(ulong).ToString(), sizeof(ulong), ulong.MinValue, ulong.MaxValue);
}
}
The code above generates the following result.