Use ushort as the parameter for overload methods : ushort « Data Type « C# / CSharp Tutorial






using System;

class Util
{
    public static void Process(short value)
    {
        Console.WriteLine("short {0}", value);
    }
    public static void Process(ushort value)
    {
        Console.WriteLine("ushort {0}", value);
    }
}

class MainClass
{
    public static void Main()
    {
        byte    value = 3;
        Util.Process(value);
    }
}
short 3








2.17.ushort
2.17.1.ushort value
2.17.2.Ushort To Byte convert
2.17.3.Use ushort as the parameter for overload methods
2.17.4.Format ushort with: "G", "C", "D3", "E2", "e3", "F", "N", "P", "X", "000000.0", "#.0"