const string formatter = "{0,10}{1,13}";
public static void GetBytesInt16(short argument)
byte[] byteArray = argument.GetBytes();
Console.WriteLine(formatter, argument, BitConverter.ToString(byteArray));
public static void Main()
Console.WriteLine(formatter, "short", "byte array");
Console.WriteLine(formatter, "-----", "----------");
GetBytesInt16(short.MinValue);
GetBytesInt16(short.MaxValue);