Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","sbyte ", System.Runtime.InteropServices.Marshal.SizeOf(typeof(sbyte)), System.SByte.MinValue, System.SByte.MaxValue));
Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","byte ", System.Runtime.InteropServices.Marshal.SizeOf(typeof(byte)),System.Byte.MinValue, System.Byte.MaxValue));
Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","short ", System.Runtime.InteropServices.Marshal.SizeOf(typeof(Int16)),System.Int16.MinValue, System.Int16.MaxValue));
Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","ushort", System.Runtime.InteropServices.Marshal.SizeOf(typeof(UInt16)),System.UInt16.MinValue, System.UInt16.MaxValue));
Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","int ", System.Runtime.InteropServices.Marshal.SizeOf(typeof(Int32)),System.Int32.MinValue, System.Int32.MaxValue));
Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","uint ", System.Runtime.InteropServices.Marshal.SizeOf(typeof(UInt32)),System.UInt32.MinValue, System.UInt32.MaxValue));
Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","long ", System.Runtime.InteropServices.Marshal.SizeOf(typeof(Int64)),System.Int64.MinValue, System.Int64.MaxValue));
Console.WriteLine(string.Format("{0}:{1}byte:{2}~{3}","ulong ", System.Runtime.InteropServices.Marshal.SizeOf(typeof(UInt64)),System.UInt64.MinValue, System.UInt64.MaxValue));
|