C#中带有示例的Int32.MinValue属性
Int32.MinValue属性
MinValue属性是GET属性,用于获取System.Int32的最小值。
语法:
int int.MinValue;
返回值:
int–返回System.Int32的最小值。
C#中的Int32.MinValue属性示例
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int intMinVal = 0;
intMinVal = int.MinValue;
Console.WriteLine("Return Type is : " + int.MinValue.GetType());
Console.WriteLine("Minimum value of System.Int32 : " + intMinVal);
}
}
}输出结果
Return Type is : System.Int32 Minimum value of System.Int32 : -2147483648
热门推荐
10 冬至祝福语简短情话高级
11 辞职发给公司祝福语简短
12 给升迁同事祝福语简短
13 元旦感恩祝福语简短大全
14 爱情红包祝福语简短英文
15 同事喜糖礼盒祝福语简短
16 孩子献花祝福语大全简短
17 写信高考祝福语简短英语
18 职校离校祝福语大全简短