
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
C# Int32 Struct
The Int32 Struct represents a 32-bit signed integer. It is an immutable value type that represents signed integers with values that range from negative 2,147,483,648 through positive 2,147,483,647.
Following are the fields of the Int32 Struct −
Sr.No | Field & Description |
---|---|
1 | MaxValue Represents the largest possible value of an Int32. This field is constant. |
2 | MinValue Represents the smallest possible value of an Int32. This field is constant. |
Following are some of the methods of the Int32 Struct −
Sr.No | Method & Description |
---|---|
1 | CompareTo(Int32) Compares this instance to a specified 32-bit signed integer and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified 32-bit signed integer. |
2 | CompareTo(Object) Compares this instance to a specified object and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the object. |
3 | Equals(Int32) Returns a value indicating whether this instance is equal to a specified Int32 value. |
4 | Equals(Object) Returns a value indicating whether this instance is equal to a specified object. |
5 | GetHashCode() Returns the hash code for this instance. |
6 | GetTypeCode() Returns the TypeCode for value type Int32. |
7 | Parse(String) Converts the string representation of a number to its 32-bit signed integer equivalent. |
- Related Articles
- C# Int16 Struct
- Array.BinarySearch(Array, Int32, Int32, Object) Method with examples in C#
- C/C++ Struct vs Class
- UInt16 Struct in C#
- UInt32 Struct in C#
- Char Struct in C#
- Byte Struct in C#
- UInt64 Struct in C#
- Decimal Struct in C#
- Char.ConvertFromUtf32(Int32) Method in C#
- Int 64 Struct in C#
- Difference between 'struct' and 'typedef struct' in C++?
- Char.IsControl(String, Int32) Method in C#
- Char.ConvertToUtf32(String, Int32) Method in C#
- Char.IsLowSurrogate(String, Int32) Method in C#

Advertisements