Click or drag to resize
Int32 Structure
Represents a 32-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Int32 : IComparable, IFormattable, 
	IConvertible, IComparable<int>, IEquatable<int>

The Int32 type exposes the following members.

Methods
  NameDescription
Public methodEquals(Int32)
Returns a value indicating whether this instance is equal to a specified Int32 value.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberParse(String)
Converts the string representation of a number to its 32-bit signed integer equivalent.
Public methodStatic memberParse(String, NumberStyles)
Converts the string representation of a number in a specified style to its 32-bit signed integer equivalent.
Public methodStatic memberParse(String, IFormatProvider)
Converts the string representation of a number in a specified culture-specific format to its 32-bit signed integer equivalent.
Public methodStatic memberParse(String, NumberStyles, IFormatProvider)
Converts the string representation of a number in a specified style and culture-specific format to its 32-bit signed integer equivalent.
Public methodToString
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodToString(String, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Public methodStatic memberTryParse(String, Int32)
Converts the string representation of a number to its 32-bit signed integer equivalent. A return value indicates whether the conversion succeeded.
Public methodStatic memberTryParse(String, NumberStyles, IFormatProvider, Int32)
Converts the string representation of a number in a specified style and culture-specific format to its 32-bit signed integer equivalent. A return value indicates whether the conversion succeeded.
Top
Fields
  NameDescription
Public fieldStatic memberMaxValue
Represents the largest possible value of an Int32. This field is constant.
Public fieldStatic memberMinValue
Represents the smallest possible value of Int32. This field is constant.
Top
See Also