C# Int32.MinValue property: Here, we will find out about the MinValue property of int (Int32) struct with its portrayal, syntax, and example.
Int32.MinValue Property
MinValue property is GET property to get the base value of System.Int32.
Syntax:
int int.MinValue;
Return value:
int – it restores the base value of System.Int32.
Int32.MinValue Property Example in C#
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);
}
}
}
Output
Return Type is : System.Int32
Minimum value of System.Int32 : -2147483648