Home »
C#.Net
Int32.MinValue property with example in C#
C# Int32.MinValue property: Here, we are going to learn about the MinValue property of int (Int32) struct with its description, syntax, and example.
Submitted by IncludeHelp, on October 02, 2019
Int32.MinValue Property
MinValue property is GET property to get the minimum value of System.Int32.
Syntax:
int int.MinValue;
Return value:
int – it returns the minimum 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