mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
Initial commit
This commit is contained in:
parent
fca52abf35
commit
a7208c649d
|
|
@ -1,6 +1,7 @@
|
|||
WriteLine("--------------------------------------------------------------------------");
|
||||
string tableRowSeparator = new string('-', 74);
|
||||
WriteLine(tableRowSeparator);
|
||||
WriteLine("Type Byte(s) of memory Min Max");
|
||||
WriteLine("--------------------------------------------------------------------------");
|
||||
WriteLine(tableRowSeparator);
|
||||
WriteLine($"sbyte {sizeof(sbyte),-4} {sbyte.MinValue,30} {sbyte.MaxValue,30}");
|
||||
WriteLine($"byte {sizeof(byte),-4} {byte.MinValue,30} {byte.MaxValue,30}");
|
||||
WriteLine($"short {sizeof(short),-4} {short.MinValue,30} {short.MaxValue,30}");
|
||||
|
|
@ -12,4 +13,4 @@ WriteLine($"ulong {sizeof(ulong),-4} {ulong.MinValue,30} {ulong.MaxValue,30}")
|
|||
WriteLine($"float {sizeof(float),-4} {float.MinValue,30} {float.MaxValue,30}");
|
||||
WriteLine($"double {sizeof(double),-4} {double.MinValue,30} {double.MaxValue,30}");
|
||||
WriteLine($"decimal {sizeof(decimal),-4} {decimal.MinValue,30} {decimal.MaxValue,30}");
|
||||
WriteLine("--------------------------------------------------------------------------");
|
||||
WriteLine(tableRowSeparator);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
WriteLine("--------------------------------------------------------------------------");
|
||||
string tableRowSeparator = new string('-', 74);
|
||||
WriteLine(tableRowSeparator);
|
||||
WriteLine("Type Byte(s) of memory Min Max");
|
||||
WriteLine("--------------------------------------------------------------------------");
|
||||
WriteLine(tableRowSeparator);
|
||||
WriteLine($"sbyte {sizeof(sbyte),-4} {sbyte.MinValue,30} {sbyte.MaxValue,30}");
|
||||
WriteLine($"byte {sizeof(byte),-4} {byte.MinValue,30} {byte.MaxValue,30}");
|
||||
WriteLine($"short {sizeof(short),-4} {short.MinValue,30} {short.MaxValue,30}");
|
||||
|
|
@ -12,4 +13,4 @@ WriteLine($"ulong {sizeof(ulong),-4} {ulong.MinValue,30} {ulong.MaxValue,30}")
|
|||
WriteLine($"float {sizeof(float),-4} {float.MinValue,30} {float.MaxValue,30}");
|
||||
WriteLine($"double {sizeof(double),-4} {double.MinValue,30} {double.MaxValue,30}");
|
||||
WriteLine($"decimal {sizeof(decimal),-4} {decimal.MinValue,30} {decimal.MaxValue,30}");
|
||||
WriteLine("--------------------------------------------------------------------------");
|
||||
WriteLine(tableRowSeparator);
|
||||
|
|
|
|||
Loading…
Reference in a new issue