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