﻿<?xml version="1.0" encoding="utf-8"?><Type Name="Int32" FullName="System.Int32" FullNameSP="System_Int32" Maintainer="ecma"><TypeSignature Language="ILASM" Value=".class public sequential sealed serializable Int32 extends System.ValueType implements System.IComparable, System.IFormattable" /><TypeSignature Language="C#" Value="public struct Int32 : IComparable, IComparable&lt;int&gt;, IConvertible, IEquatable&lt;int&gt;, IFormattable" /><TypeSignature Language="ILAsm" Value=".class public sequential ansi serializable sealed beforefieldinit int32 extends System.ValueType implements class System.IComparable, class System.IComparable`1&lt;int32&gt;, class System.IConvertible, class System.IEquatable`1&lt;int32&gt;, class System.IFormattable" /><MemberOfLibrary>BCL</MemberOfLibrary><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadingSafetyStatement>This type is safe for multithreaded operations. </ThreadingSafetyStatement><Base><BaseTypeName>System.ValueType</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.IComparable</InterfaceName></Interface><Interface><InterfaceName>System.IComparable&lt;System.Int32&gt;</InterfaceName></Interface><Interface><InterfaceName>System.IConvertible</InterfaceName></Interface><Interface><InterfaceName>System.IEquatable&lt;System.Int32&gt;</InterfaceName></Interface><Interface><InterfaceName>System.IFormattable</InterfaceName></Interface></Interfaces><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="T:System.Int32" /> is an immutable value type that represents signed integers with values that range from negative 2,147,483,648 (which is represented by the <see cref="F:System.Int32.MinValue" /> constant) through positive 2,147,483,647 (which is represented by the <see cref="F:System.Int32.MaxValue" /> constant. The .NET Framework also includes an unsigned 32-bit integer value type, <see cref="T:System.UInt32" />, which represents values that range from 0 to 4,294,967,295.</para><format type="text/html"><h2>Instantiating an Int32 Value</h2></format><para>You can instantiate an <see cref="T:System.Int32" /> value in several ways:</para><list type="bullet"><item><para>You can declare an <see cref="T:System.Int32" /> variable and assign it a literal integer value that is within the range of the <see cref="T:System.Int32" /> data type. The following example declares two <see cref="T:System.Int32" /> variables and assigns them values in this way. </para><para>code reference: System.Int32.Instantiation#1</para></item><item><para>You can assign the value of an integer type whose range is a subset of the <see cref="T:System.Int32" /> type. This is a widening conversion that does not require a cast operator in C# or a conversion method in Visual Basic.</para><para>code reference: System.Int32.Instantiation#4</para></item><item><para>You can assign the value of a numeric type whose range exceeds that of the <see cref="T:System.Int32" /> type. This is a narrowing conversion, so it requires a cast operator in C# and a conversion method in Visual Basic if Option Strict is on. If the numeric value is a <see cref="T:System.Single" />, <see cref="T:System.Double" />, or <see cref="T:System.Decimal" /> value that includes a fractional component, the handling of its fractional part depends on the compiler performing the conversion. The following example performs narrowing conversions to assign several numeric values to <see cref="T:System.Int32" /> variables.</para><para>code reference: System.Int32.Instantiation#2</para></item><item><para>You can call a method of the <see cref="T:System.Convert" /> class to convert any supported type to an <see cref="T:System.Int32" /> value. This is possible because <see cref="T:System.Int32" /> supports the <see cref="T:System.IConvertible" /> interface. The following example illustrates the conversion of an array of <see cref="T:System.Decimal" /> values to <see cref="T:System.Int32" /> values.</para><para>code reference: System.Convert.ToInt32#4</para></item><item><para>You can call the <see cref="M:System.Int32.Parse(System.String)" /> or <see cref="M:System.Int32.TryParse(System.String,System.Int32@)" /> method to convert the string representation of an <see cref="T:System.Int32" /> value to an <see cref="T:System.Int32" />. The string can contain either decimal or hexadecimal digits. The following example illustrates the parse operation by using both a decimal and a hexadecimal string.</para><para>code reference: System.Int32.Instantiation#3</para></item></list><format type="text/html"><h2>Performing Operations on Int32 Values</h2></format><para>The <see cref="T:System.Int32" /> type supports standard mathematical operations such as addition, subtraction, division, multiplication, negation, and unary negation. Like the other integral types, the <see cref="T:System.Int32" /> type also supports the bitwise AND, OR, XOR, left shift, and right shift operators. </para><para>You can use the standard numeric operators to compare two <see cref="T:System.Int32" /> values, or you can call the <see cref="M:System.Int32.CompareTo(System.Int32)" /> or <see cref="M:System.Int32.Equals(System.Int32)" /> method.</para><para>You can also call the members of the <see cref="T:System.Math" /> class to perform a wide range of numeric operations, including getting the absolute value of a number, calculating the quotient and remainder from integral division, determining the maximum or minimum value of two integers, getting the sign of a number, and rounding a number.  </para><format type="text/html"><h2>Representing an Int32 as a String</h2></format><para>The <see cref="T:System.Int32" /> type provides full support for standard and custom numeric format strings. (For more information, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>, <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format>, and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>.) </para><para>To format an <see cref="T:System.Int32" /> value as an integral string with no leading zeros, you can call the parameterless <see cref="M:System.Int32.ToString" /> method. By using the "D" format specifier, you can also include a specified number of leading zeros in the string representation. By using the "N" format specifier, you can include group separators and specify the number of decimal digits to appear in the string representation of the number. By using the "X" format specifier, you can represent an <see cref="T:System.Int32" /> value as a hexadecimal string. The following example formats the elements in an array of <see cref="T:System.Int32" /> values in these four ways.</para><para>code reference: System.Int32.Formatting#1</para><para>You can also format an <see cref="T:System.Int32" /> value as a binary, octal, decimal, or hexadecimal string by calling the <see cref="M:System.Convert.ToString(System.Int32,System.Int32)" /> method and supplying the base as the method's second parameter. The following example calls this method to display the binary, octal, and hexadecimal representations of an array of integer values.</para><para>code reference: System.Int32.Formatting#2</para><format type="text/html"><h2>Working with Non-Decimal 32-Bit Integer Values</h2></format><para>In addition to working with individual integers as decimal values, you may want to perform bitwise operations with integer values, or work with the binary or hexadecimal representations of integer values. <see cref="T:System.Int32" /> values are represented in 31 bits, with the thirty-second bit used as a sign bit. Positive values are represented by using sign-and-magnitude representation. Negative values are in two's complement representation. This is important to keep in mind when you perform bitwise operations on <see cref="T:System.Int32" /> values or when you work with individual bits. In order to perform a numeric, Boolean, or comparison operation on any two non-decimal values, both values must use the same representation. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents a 32-bit signed integer.</para></summary></Docs><Members><Member MemberName="CompareTo"><MemberSignature Language="C#" Value="public int CompareTo (int value);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 CompareTo(int32 value) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="value" Type="System.Int32" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method implements the <see cref="T:System.IComparable`1" /> interface and performs slightly better than the <see cref="M:System.Int32.CompareTo(System.Object)" /> method because it does not have to convert the <paramref name="value" /> parameter to an object.</para><para>Depending on your programming language, it might be possible to code a <see cref="Overload:System.Int32.CompareTo" /> method where the parameter type has fewer bits (is narrower) than the instance type. This is possible because some programming languages perform an implicit widening conversion that represents the parameter as a type with as many bits as the instance.</para><para>For example, suppose the instance type is <see cref="T:System.Int32" /> and the parameter type is <see cref="T:System.Byte" />. The Microsoft C# compiler generates instructions to represent the value of the parameter as an <see cref="T:System.Int32" />, then generates a <see cref="M:System.Int32.CompareTo(System.Object)" /> method that compares the values of the <see cref="T:System.Int32" /> instance and the <see cref="T:System.Int32" /> parameter representation.</para><para>Consult your programming language's documentation to determine whether its compiler performs implicit widening conversions on numeric types.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Compares this instance to a specified 32-bit signed integer and returns an indication of their relative values.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A signed number indicating the relative values of this instance and <paramref name="value" />.</para><list type="table"><listheader><item><term><para>Return Value </para></term><description><para>Description </para></description></item></listheader><item><term><para>Less than zero </para></term><description><para>This instance is less than <paramref name="value" />. </para></description></item><item><term><para>Zero </para></term><description><para>This instance is equal to <paramref name="value" />. </para></description></item><item><term><para>Greater than zero </para></term><description><para>This instance is greater than <paramref name="value" />. </para></description></item></list></returns><param name="value"><attribution license="cc4" from="Microsoft" modified="false" />An integer to compare. </param></Docs></Member><Member MemberName="CompareTo"><MemberSignature Language="ILASM" Value=".method public final hidebysig virtual int32 CompareTo(object value)" /><MemberSignature Language="C#" Value="public int CompareTo (object value);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 CompareTo(object value) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="value" Type="System.Object" /></Parameters><Docs><exception cref="T:System.ArgumentException"><paramref name="value" /> is not a <see cref="T:System.Int32" /> and is not a null reference.</exception><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Any instance of <see cref="T:System.Int32" />, regardless of its value, is considered greater than null.</para><para><paramref name="value" /> must be null or an instance of <see cref="T:System.Int32" />; otherwise, an exception is thrown.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Compares this instance to a specified object and returns an indication of their relative values.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A signed number indicating the relative values of this instance and <paramref name="value" />.</para><list type="table"><listheader><item><term><para>Return Value </para></term><description><para>Description </para></description></item></listheader><item><term><para>Less than zero </para></term><description><para>This instance is less than <paramref name="value" />. </para></description></item><item><term><para>Zero </para></term><description><para>This instance is equal to <paramref name="value" />. </para></description></item><item><term><para>Greater than zero </para></term><description><para>This instance is greater than <paramref name="value" />.</para><para>-or- </para><para><paramref name="value" /> is null. </para></description></item></list></returns><param name="value"><attribution license="cc4" from="Microsoft" modified="false" />An object to compare, or null. </param></Docs><Excluded>0</Excluded></Member><Member MemberName="Equals"><MemberSignature Language="C#" Value="public bool Equals (int obj);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool Equals(int32 obj) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="obj" Type="System.Int32" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method implements the <see cref="T:System.IEquatable`1" /> interface, and performs slightly better than <see cref="M:System.Int32.Equals(System.Object)" /> because it does not have to convert the <paramref name="obj" /> parameter to an object.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a value indicating whether this instance is equal to a specified <see cref="T:System.Int32" /> value. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if <paramref name="obj" /> has the same value as this instance; otherwise, false.</para></returns><param name="obj"><attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Int32" /> value to compare to this instance.</param></Docs></Member><Member MemberName="Equals"><MemberSignature Language="ILASM" Value=".method public hidebysig virtual bool Equals(object obj)" /><MemberSignature Language="C#" Value="public override bool Equals (object obj);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object obj) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="obj" Type="System.Object" /></Parameters><Docs><remarks><para><block subset="none" type="note">This method
      overrides <see cref="M:System.Object.Equals(System.Object)" />.</block></para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a value indicating whether this instance is equal to a specified object.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if <paramref name="obj" /> is an instance of <see cref="T:System.Int32" /> and equals the value of this instance; otherwise, false.</para></returns><param name="obj"><attribution license="cc4" from="Microsoft" modified="false" />An object to compare with this instance. </param></Docs><Excluded>0</Excluded></Member><Member MemberName="GetHashCode"><MemberSignature Language="ILASM" Value=".method public hidebysig virtual int32 GetHashCode()" /><MemberSignature Language="C#" Value="public override int GetHashCode ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><Docs><remarks><para> The algorithm used to
      generate the hash code is unspecified. </para><para><block subset="none" type="note">This method
      overrides <see cref="M:System.Object.GetHashCode" />.</block></para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the hash code for this instance.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A 32-bit signed integer hash code.</para></returns></Docs><Excluded>0</Excluded></Member><Member MemberName="GetTypeCode"><MemberSignature Language="C#" Value="public TypeCode GetTypeCode ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype System.TypeCode GetTypeCode() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.TypeCode</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the <see cref="T:System.TypeCode" /> for value type <see cref="T:System.Int32" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The enumerated constant, <see cref="F:System.TypeCode.Int32" />.</para></returns></Docs></Member><Member MemberName="MaxValue"><MemberSignature Language="ILASM" Value=".field public static literal int32 MaxValue = 2147483647" /><MemberSignature Language="C#" Value="public const int MaxValue = 2147483647;" /><MemberSignature Language="ILAsm" Value=".field public static literal int32 MaxValue = int32(2147483647)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><MemberValue>2147483647</MemberValue><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of this constant is 2,147,483,647; that is, hexadecimal 0x7FFFFFFF.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents the largest possible value of an <see cref="T:System.Int32" />. This field is constant.</para></summary></Docs><Excluded>0</Excluded></Member><Member MemberName="MinValue"><MemberSignature Language="ILASM" Value=".field public static literal int32 MinValue = -2147483648" /><MemberSignature Language="C#" Value="public const int MinValue = -2147483648;" /><MemberSignature Language="ILAsm" Value=".field public static literal int32 MinValue = int32(-2147483648)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><MemberValue>-2147483648</MemberValue><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of this constant is -2,147,483,648; that is, hexadecimal 0x80000000.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents the smallest possible value of <see cref="T:System.Int32" />. This field is constant.</para></summary></Docs><Excluded>0</Excluded></Member><Member MemberName="Parse"><MemberSignature Language="ILASM" Value=".method public hidebysig static int32 Parse(string s)" /><MemberSignature Language="C#" Value="public static int Parse (string s);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Parse(string s) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="s" Type="System.String" /></Parameters><Docs><exception cref="T:System.ArgumentNullException"><paramref name="s" /> is a null reference.</exception><exception cref="T:System.FormatException"><paramref name="s" /> is not in the correct style.</exception><exception cref="T:System.OverflowException"><paramref name="s" /> represents a number greater than <see cref="F:System.Int32.MaxValue" /> or less than <see cref="F:System.Int32.MinValue" />.</exception><example><para>This example demonstrates parsing a string to a <see cref="T:System.Int32" />.</para><code lang="C#">using System;
public class Int32ParseClass {
  public static void Main() {
    string str = "  100   ";
    Console.WriteLine("String: \"{0}\" &lt;Int32&gt; {1}",str,Int32.Parse(str));
  }
}
</code><para>The output is</para><para><c>String: "
   100 " &lt;Int32&gt; 100</c></para></example><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="s" /> parameter contains a number of the form: </para><para>[ws][sign]digits[ws] </para><para>Items in square brackets ([ and ]) are optional. The following table describes each element.</para><list type="table"><listheader><item><term><para>Element</para></term><description><para>Description</para></description></item></listheader><item><term><para> ws</para></term><description><para>Optional white space. </para></description></item><item><term><para> sign</para></term><description><para>An optional sign. </para></description></item><item><term><para> digits</para></term><description><para>A sequence of digits ranging from 0 to 9. </para></description></item></list><para>The <paramref name="s" /> parameter is interpreted using the <see cref="F:System.Globalization.NumberStyles.Integer" /> style. In addition to decimal digits, only leading and trailing spaces together with a leading sign are allowed. To explicitly define the style elements that can be present in <paramref name="s" />, use either the <see cref="M:System.Int32.Parse(System.String,System.Globalization.NumberStyles)" /> or the <see cref="M:System.Int32.Parse(System.String,System.Globalization.NumberStyles,System.IFormatProvider)" /> method. </para><para>The <paramref name="s" /> parameter is parsed using the formatting information in a <see cref="T:System.Globalization.NumberFormatInfo" /> object initialized for the current system culture. For more information, see <see cref="P:System.Globalization.NumberFormatInfo.CurrentInfo" />. To parse a string using the formatting information of some other culture, use the <see cref="M:System.Int32.Parse(System.String,System.Globalization.NumberStyles,System.IFormatProvider)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the string representation of a number to its 32-bit signed integer equivalent.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A 32-bit signed integer equivalent to the number contained in <paramref name="s" />.</para></returns><param name="s"><attribution license="cc4" from="Microsoft" modified="false" />A string containing a number to convert. </param></Docs><Excluded>0</Excluded></Member><Member MemberName="Parse"><MemberSignature Language="ILASM" Value=".method public hidebysig static int32 Parse(string s, valuetype System.Globalization.NumberStyles style)" /><MemberSignature Language="C#" Value="public static int Parse (string s, System.Globalization.NumberStyles style);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Parse(string s, valuetype System.Globalization.NumberStyles style) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="s" Type="System.String" /><Parameter Name="style" Type="System.Globalization.NumberStyles" /></Parameters><Docs><exception cref="T:System.ArgumentNullException"><paramref name="s" /> is a null reference.</exception><exception cref="T:System.FormatException"><paramref name="s" /> is not in the correct style.</exception><exception cref="T:System.OverflowException"><paramref name="s" /> represents a number greater than <see cref="F:System.Int32.MaxValue" /> or less than <see cref="F:System.Int32.MinValue" />.</exception><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="style" /> parameter defines the style elements (such as white space, the positive or negative sign symbol, or the thousands separator symbol) that are allowed in the <paramref name="s" /> parameter for the parse operation to succeed. It must be a combination of bit flags from the <see cref="T:System.Globalization.NumberStyles" /> enumeration. Depending on the value of <paramref name="style" />, the <paramref name="s" /> parameter may include the following elements: </para><para>[ws][$][sign][digits,]digits[.fractional_digits][e[sign]exponential_digits][ws] </para><para>Or, if <paramref name="style" /> includes <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" />:</para><para>[ws]hexdigits[ws]</para><para>Items in square brackets ([ and ]) are optional. The following table describes each element.</para><list type="table"><listheader><item><term><para>Element</para></term><description><para>Description</para></description></item></listheader><item><term><para>ws</para></term><description><para>Optional white space. White space can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /> flag, and it can appear at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" /> flag.</para></description></item><item><term><para>$</para></term><description><para>A culture-specific currency symbol. Its position in the string is defined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencyNegativePattern" />  and <see cref="P:System.Globalization.NumberFormatInfo.CurrencyPositivePattern" /> properties of the current culture. The current culture's currency symbol can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /> flag.</para></description></item><item><term><para>sign</para></term><description><para>An optional sign. The sign can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /> flag, and it can appear at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" /> flag. Parentheses can be used in <paramref name="s" /> to indicate a negative value if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowParentheses" /> flag. </para></description></item><item><term><para>digits</para><para>fractional_digits</para><para>exponential_digits</para></term><description><para>A sequence of digits from 0 through 9. For fractional_digits, only the digit 0 is valid.</para></description></item><item><term><para>,</para></term><description><para>A culture-specific thousands separator symbol. The current culture's thousands separator can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowThousands" /> flag.</para></description></item><item><term><para>.</para></term><description><para>A culture-specific decimal point symbol. The current culture's decimal point symbol can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> flag. Only the digit 0 can appear as a fractional digit for the parse operation to succeed; if fractional_digits includes any other digit, an <see cref="T:System.OverflowException" /> is thrown.</para></description></item><item><term><para>e</para></term><description><para>The 'e' or 'E' character, which indicates that the value is represented in exponential notation. The <paramref name="s" /> parameter can represent a number in exponential notation if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowExponent" /> flag.</para></description></item><item><term><para>hexdigits</para></term><description><para>A sequence of hexadecimal digits from 0 through f, or 0 through F. </para></description></item></list><para>A string with digits only (which corresponds to the <see cref="F:System.Globalization.NumberStyles.None" /> style) always parses successfully. Most of the remaining <see cref="T:System.Globalization.NumberStyles" /> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <see cref="T:System.Globalization.NumberStyles" /> members affect the elements that may be present in <paramref name="s" />.</para><list type="table"><listheader><item><term><para>NumberStyles value</para></term><description><para>Elements permitted in s in addition to digits</para></description></item></listheader><item><term><para><see cref="F:System.Globalization.NumberStyles.None" /></para></term><description><para>The digits element only.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /></para></term><description><para>The decimal point ( . ) and fractional-digits elements.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowExponent" /></para></term><description><para>The <paramref name="s" /> parameter can also use exponential notation. </para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /></para></term><description><para>The ws element at the beginning of <paramref name="s" />.  </para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" /></para></term><description><para>The ws element at the end of <paramref name="s" />.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /></para></term><description><para>The sign element at the beginning of <paramref name="s" />.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" /></para></term><description><para>The sign element at the end of <paramref name="s" />.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowParentheses" /></para></term><description><para>The sign element in the form of parentheses enclosing the numeric value.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowThousands" /></para></term><description><para>The thousands separator ( , ) element.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /></para></term><description><para>The $ element.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.Currency" /></para></term><description><para>All. The <paramref name="s" /> parameter cannot represent a hexadecimal number or a number in exponential notation.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.Float" /></para></term><description><para>The ws element at the beginning or end of <paramref name="s" />, sign at the beginning of <paramref name="s" />, and the decimal point ( . ) symbol. The <paramref name="s" /> parameter can also use exponential notation.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.Number" /></para></term><description><para>The <paramref name="ws" />, <paramref name="sign" />, thousands separator ( , ), and decimal point ( . ) elements.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.Any" /></para></term><description><para>All styles, except <paramref name="s" /> cannot represent a hexadecimal number.</para></description></item></list><para>If the <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> flag is used, <paramref name="s" /> must be a hexadecimal value. The only other flags that can be combined with the <paramref name="s" /> parameter it are <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /> and <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />. (The <see cref="T:System.Globalization.NumberStyles" /> enumeration includes a composite number style, <see cref="F:System.Globalization.NumberStyles.HexNumber" />, that includes both white space flags.)  </para><para>The <paramref name="s" /> parameter is parsed using the formatting information in a <see cref="T:System.Globalization.NumberFormatInfo" /> object that is initialized for the current system culture. To specify the culture whose formatting information is used for the parse operation, call the <see cref="M:System.Int32.Parse(System.String,System.Globalization.NumberStyles,System.IFormatProvider)" /> overload.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the string representation of a number in a specified style to its 32-bit signed integer equivalent.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A 32-bit signed integer equivalent to the number specified in <paramref name="s" />.</para></returns><param name="s"><attribution license="cc4" from="Microsoft" modified="false" />A string containing a number to convert. </param><param name="style"><attribution license="cc4" from="Microsoft" modified="false" />A bitwise combination of the enumeration values that indicates the style elements that can be present in <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Integer" />.</param></Docs><Excluded>0</Excluded></Member><Member MemberName="Parse"><MemberSignature Language="ILASM" Value=".method public hidebysig static int32 Parse(string s, class System.IFormatProvider provider)" /><MemberSignature Language="C#" Value="public static int Parse (string s, IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Parse(string s, class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="s" Type="System.String" /><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><exception cref="T:System.ArgumentNullException"><paramref name="s" /> is a null reference.</exception><exception cref="T:System.FormatException"><paramref name="s" /> is not in the correct style.</exception><exception cref="T:System.OverflowException"><paramref name="s" /> represents a number greater than <see cref="F:System.Int32.MaxValue" /> or less than <see cref="F:System.Int32.MinValue" />.</exception><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This overload of the <see cref="M:System.Int32.Parse(System.String,System.IFormatProvider)" /> method is typically used to convert text that can be formatted in a variety of ways to an <see cref="T:System.Int32" /> value. For example, it can be used to convert the text entered by a user into an HTML text box to a numeric value.</para><para>The <paramref name="s" /> parameter contains a number of the form: </para><para>[ws][sign]digits[ws] </para><para>Items in square brackets ([ and ]) are optional. The following table describes each element.</para><list type="table"><listheader><item><term><para>Element</para></term><description><para>Description</para></description></item></listheader><item><term><para> ws</para></term><description><para>Optional white space. </para></description></item><item><term><para> sign</para></term><description><para>An optional sign. </para></description></item><item><term><para> digits</para></term><description><para>A sequence of digits ranging from 0 to 9. </para></description></item></list><para>The <paramref name="s" /> parameter is interpreted using the <see cref="F:System.Globalization.NumberStyles.Integer" /> style. In addition to decimal digits, only leading and trailing spaces together with a leading sign are allowed. To explicitly define the style elements that can be present in <paramref name="s" />, use the <see cref="M:System.Int32.Parse(System.String,System.Globalization.NumberStyles,System.IFormatProvider)" /> method.</para><para>The <paramref name="provider" /> parameter is an <see cref="T:System.IFormatProvider" /> implementation, such as a <see cref="T:System.Globalization.NumberFormatInfo" /> or <see cref="T:System.Globalization.CultureInfo" /> object. The <paramref name="provider" /> parameter supplies culture-specific information about the format of <paramref name="s" />. If <paramref name="provider" /> is null, the <see cref="T:System.Globalization.NumberFormatInfo" /> object for the current culture is used.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the string representation of a number in a specified culture-specific format to its 32-bit signed integer equivalent.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A 32-bit signed integer equivalent to the number specified in <paramref name="s" />.</para></returns><param name="s"><attribution license="cc4" from="Microsoft" modified="false" />A string containing a number to convert. </param><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />An object that supplies culture-specific formatting information about <paramref name="s" />. </param></Docs><Excluded>0</Excluded></Member><Member MemberName="Parse"><MemberSignature Language="ILASM" Value=".method public hidebysig static int32 Parse(string s, valuetype System.Globalization.NumberStyles style, class System.IFormatProvider provider)" /><MemberSignature Language="C#" Value="public static int Parse (string s, System.Globalization.NumberStyles style, IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Parse(string s, valuetype System.Globalization.NumberStyles style, class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="s" Type="System.String" /><Parameter Name="style" Type="System.Globalization.NumberStyles" /><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><exception cref="T:System.ArgumentNullException"><paramref name="s" /> is a null reference.</exception><exception cref="T:System.FormatException"><paramref name="s" /> is not in the correct style.</exception><exception cref="T:System.OverflowException"><paramref name="s" /> represents a number greater than <see cref="F:System.Int32.MaxValue" /> or less than <see cref="F:System.Int32.MinValue" />.</exception><param name="s"><attribution license="cc4" from="Microsoft" modified="false" />A string containing a number to convert. </param><param name="style"><attribution license="cc4" from="Microsoft" modified="false" />A bitwise combination of enumeration values that indicates the style elements that can be present in <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Integer" />.</param><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="style" /> parameter defines the style elements (such as white space or the positive sign) that are allowed in the <paramref name="s" /> parameter for the parse operation to succeed. It must be a combination of bit flags from the <see cref="T:System.Globalization.NumberStyles" /> enumeration. Depending on the value of <paramref name="style" />, the <paramref name="s" /> parameter may include the following elements: </para><para>[ws][$][sign][digits,]digits[.fractional_digist][e[sign]exponential_digits][ws] </para><para>Or, if <paramref name="style" /> includes <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" />:</para><para>[ws]hexdigits[ws]</para><para>Items in square brackets ([ and ]) are optional. The following table describes each element.</para><list type="table"><listheader><item><term><para>Element</para></term><description><para>Description</para></description></item></listheader><item><term><para>ws</para></term><description><para>Optional white space. White space can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /> flag, and it can appear at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" /> flag. </para></description></item><item><term><para>$</para></term><description><para>A culture-specific currency symbol. Its position in the string is defined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencyPositivePattern" /> property of the <see cref="T:System.Globalization.NumberFormatInfo" /> object returned by the <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method of the <paramref name="provider" /> parameter. The currency symbol can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /> flag.</para></description></item><item><term><para>sign</para></term><description><para>An optional sign. The sign can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /> flag or at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" /> flag. Parentheses can be used in <paramref name="s" /> to indicate a negative value if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowParentheses" /> flag.</para></description></item><item><term><para>digits</para><para>fractional_digits</para><para>exponential_digits</para></term><description><para>A sequence of digits from 0 through 9. For fractional_digits, only the digit 0 is valid. </para></description></item><item><term><para>,</para></term><description><para>A culture-specific thousands separator symbol. The thousands separator of the culture specified by <paramref name="provider" /> can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowThousands" /> flag.</para></description></item><item><term><para>.</para></term><description><para>A culture-specific decimal point symbol. The decimal point symbol of the culture specified by <paramref name="provider" /> can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> flag.</para><para>Only the digit 0 can appear as a fractional digit for the parse operation to succeed; if fractional_digits includes any other digit, an <see cref="T:System.OverflowException" /> is thrown.</para></description></item><item><term><para>e</para></term><description><para>The 'e' or 'E' character, which indicates that the value is represented in exponential notation. The <paramref name="s" /> parameter can represent a number in exponential notation if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowExponent" /> flag.</para></description></item><item><term><para>hexdigits</para></term><description><para>A sequence of hexadecimal digits from 0 through f, or 0 through F. </para></description></item></list><para>A string with decimal digits only (which corresponds to the <see cref="F:System.Globalization.NumberStyles.None" /> style) always parses successfully if it is in the range of the <see cref="T:System.Int32" /> type. Most of the remaining <see cref="T:System.Globalization.NumberStyles" /> members control elements that may be but are not required to be present in this input string. The following table indicates how individual <see cref="T:System.Globalization.NumberStyles" /> members affect the elements that may be present in <paramref name="s" />.</para><list type="table"><listheader><item><term><para>Non-composite NumberStyles values</para></term><description><para>Elements permitted in s in addition to digits</para></description></item></listheader><item><term><para><see cref="F:System.Globalization.NumberStyles.None" /></para></term><description><para>Decimal digits only.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /></para></term><description><para>The decimal point ( . ) and fractional-digits elements. However, fractional-digits must consist of only one or more 0 digits or an <see cref="T:System.OverflowException" /> is thrown. </para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowExponent" /></para></term><description><para>The <paramref name="s" /> parameter can also use exponential notation. If <paramref name="s" /> represents a number in exponential notation, it must represent an integer within the range of the <see cref="T:System.Int32" /> data type without a non-zero, fractional component. </para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /></para></term><description><para>The ws element at the beginning of <paramref name="s" />.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" /></para></term><description><para>The ws element at the end of <paramref name="s" />.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /></para></term><description><para>A positive sign can appear before digits.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" /></para></term><description><para>A positive sign can appear after digits.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowParentheses" /></para></term><description><para>The sign element in the form of parentheses enclosing the numeric value.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowThousands" /></para></term><description><para>The thousands separator ( , ) element.</para></description></item><item><term><para><see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /></para></term><description><para>The $ element.</para></description></item></list><para>If the <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> flag is used, <paramref name="s" /> must be a hexadecimal value. The only other flags that can be present in <paramref name="style" /> are <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /> and <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />. (The <see cref="T:System.Globalization.NumberStyles" /> enumeration has a composite number style, <see cref="F:System.Globalization.NumberStyles.HexNumber" />, that includes both white space flags.)</para><para>The <paramref name="provider" /> parameter is an <see cref="T:System.IFormatProvider" /> implementation, such as a <see cref="T:System.Globalization.NumberFormatInfo" /> or <see cref="T:System.Globalization.CultureInfo" /> object. The <paramref name="provider" /> parameter supplies culture-specific information used in parsing. If <paramref name="provider" /> is null, the <see cref="T:System.Globalization.NumberFormatInfo" /> object for the current culture is used.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the string representation of a number in a specified style and culture-specific format to its 32-bit signed integer equivalent.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A 32-bit signed integer equivalent to the number specified in <paramref name="s" />.</para></returns><param name="s"><attribution license="cc4" from="Microsoft" modified="false" />A string containing a number to convert. </param><param name="style"><attribution license="cc4" from="Microsoft" modified="false" />A bitwise combination of enumeration values that indicates the style elements that can be present in <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Integer" />.</param><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />An object that supplies culture-specific information about the format of <paramref name="s" />. </param></Docs><Excluded>0</Excluded></Member><Member MemberName="System.IConvertible.ToBoolean"><MemberSignature Language="C#" Value="bool IConvertible.ToBoolean (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance bool System.IConvertible.ToBoolean(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToBoolean(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToBoolean(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the value of the current instance is not zero; otherwise, false.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToByte"><MemberSignature Language="C#" Value="byte IConvertible.ToByte (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int8 System.IConvertible.ToByte(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Byte</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToByte(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToByte(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.Byte" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToChar"><MemberSignature Language="C#" Value="char IConvertible.ToChar (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance char System.IConvertible.ToChar(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Char</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToChar(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToChar(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.Char" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToDateTime"><MemberSignature Language="C#" Value="DateTime IConvertible.ToDateTime (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance valuetype System.DateTime System.IConvertible.ToDateTime(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.DateTime</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>This conversion is not supported. Attempting to use this method throws an <see cref="T:System.InvalidCastException" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>This conversion is not supported. No value is returned.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToDecimal"><MemberSignature Language="C#" Value="decimal IConvertible.ToDecimal (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance valuetype System.Decimal System.IConvertible.ToDecimal(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Decimal</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToDecimal(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToDecimal(System.IFormatProvider)" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.Decimal" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToDouble"><MemberSignature Language="C#" Value="double IConvertible.ToDouble (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance float64 System.IConvertible.ToDouble(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Double</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToDouble(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToDouble(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.Double" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToInt16"><MemberSignature Language="C#" Value="short IConvertible.ToInt16 (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int16 System.IConvertible.ToInt16(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int16</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToInt16(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToInt16(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to an <see cref="T:System.Int16" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToInt32"><MemberSignature Language="C#" Value="int IConvertible.ToInt32 (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int32 System.IConvertible.ToInt32(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToInt32(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, unchanged.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToInt64"><MemberSignature Language="C#" Value="long IConvertible.ToInt64 (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int64 System.IConvertible.ToInt64(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int64</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToInt64(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToInt64(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to an <see cref="T:System.Int64" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToSByte"><MemberSignature Language="C#" Value="sbyte IConvertible.ToSByte (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int8 System.IConvertible.ToSByte(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.SByte</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToSByte(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToSByte(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to an <see cref="T:System.SByte" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToSingle"><MemberSignature Language="C#" Value="float IConvertible.ToSingle (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance float32 System.IConvertible.ToSingle(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Single</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToSingle(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToSingle(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.Single" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToType"><MemberSignature Language="C#" Value="object IConvertible.ToType (Type targetType, IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance object System.IConvertible.ToType(class System.Type targetType, class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object</ReturnType></ReturnValue><Parameters><Parameter Name="targetType" Type="System.Type" /><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><param name="targetType">To be added.</param><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the static (Shared in Visual Basic) <see cref="M:System.Convert.ChangeType(System.Object,System.Type,System.IFormatProvider)" /> method instead.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToType(System.Type,System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to <paramref name="type" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />An object that provides information about the format of the returned value.</param></Docs></Member><Member MemberName="System.IConvertible.ToUInt16"><MemberSignature Language="C#" Value="ushort IConvertible.ToUInt16 (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int16 System.IConvertible.ToUInt16(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.UInt16</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToUInt16(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToUInt16(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.UInt16" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToUInt32"><MemberSignature Language="C#" Value="uint IConvertible.ToUInt32 (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int32 System.IConvertible.ToUInt32(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.UInt32</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToUInt32(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToUInt32(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.UInt32" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="System.IConvertible.ToUInt64"><MemberSignature Language="C#" Value="ulong IConvertible.ToUInt64 (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int64 System.IConvertible.ToUInt64(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.UInt64</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Int32" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToUInt64(System.Int32)" /> method.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>For a description of this member, see <see cref="M:System.IConvertible.ToUInt64(System.IFormatProvider)" />. </para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The value of the current instance, converted to a <see cref="T:System.UInt64" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param></Docs></Member><Member MemberName="ToString"><MemberSignature Language="ILASM" Value=".method public hidebysig virtual string ToString()" /><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Int32.ToString" /> method formats an <see cref="T:System.Int32" /> value in the default ("G", or general) format by using the <see cref="T:System.Globalization.NumberFormatInfo" /> object of the current culture. If you want to specify a different format or culture, use the other overloads of the <see cref="M:System.Int32.ToString(System.String)" /> method, as follows: </para><list type="table"><listheader><item><term><para>To use format</para></term><description><para>For culture</para></description><description><para>Use the overload</para></description></item></listheader><item><term><para>Default ("G") format</para></term><description><para>A specific culture</para></description><description><para><see cref="M:System.Int32.ToString(System.IFormatProvider)" /></para></description></item><item><term><para>A specific format</para></term><description><para>Default (current) culture</para></description><description><para><see cref="M:System.Int32.ToString(System.String)" /></para></description></item><item><term><para>A specific format</para></term><description><para>A specific culture</para></description><description><para><see cref="M:System.Int32.ToString(System.String,System.IFormatProvider)" /></para></description></item></list><para></para><para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para><list type="bullet"><item><para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para></item><item><para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the numeric value of this instance to its equivalent string representation.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The string representation of the value of this instance, consisting of a negative sign if the value is negative, and a sequence of digits ranging from 0 to 9 with no leading zeroes.</para></returns></Docs><Excluded>0</Excluded></Member><Member MemberName="ToString"><MemberSignature Language="ILASM" Value=".method public final hidebysig virtual string ToString(class System.IFormatProvider provider)" /><MemberSignature Language="C#" Value="public string ToString (IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance string ToString(class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Int32.ToString(System.IFormatProvider)" /> method formats an <see cref="T:System.Int32" /> value in the default ("G", or general) format by using the <see cref="T:System.Globalization.NumberFormatInfo" /> object of a specified culture. If you want to specify a different format or the current culture, use the other overloads of the <see cref="M:System.Int32.ToString(System.String)" /> method, as follows:</para><list type="table"><listheader><item><term><para>To use format</para></term><description><para>For culture</para></description><description><para>Use the overload</para></description></item></listheader><item><term><para>Default ("G") format</para></term><description><para>Default (current) culture </para></description><description><para><see cref="M:System.Int32.ToString" /></para></description></item><item><term><para>A specific format</para></term><description><para>Default (current) culture</para></description><description><para><see cref="M:System.Int32.ToString(System.String)" /></para></description></item><item><term><para>A specific format</para></term><description><para>A specific culture</para></description><description><para><see cref="M:System.Int32.ToString(System.String,System.IFormatProvider)" /></para></description></item></list><para></para><para>The <paramref name="provider" /> parameter is an object that implements the <see cref="T:System.IFormatProvider" /> interface. Its <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method returns a <see cref="T:System.Globalization.NumberFormatInfo" /> object that provides culture-specific information about the format of the string that is returned by this method. The object that implements <see cref="T:System.IFormatProvider" /> can be any of the following:</para><list type="bullet"><item><para>A <see cref="T:System.Globalization.CultureInfo" /> object that represents the culture whose formatting rules are to be used.</para></item><item><para>A <see cref="T:System.Globalization.NumberFormatInfo" /> object that contains specific numeric formatting information for this value.</para></item><item><para>A custom object that implements <see cref="T:System.IFormatProvider" /> and whose <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method returns a <see cref="T:System.Globalization.NumberFormatInfo" /> object that provides formatting information.</para></item></list><para>If <paramref name="provider" /> is null or a <see cref="T:System.Globalization.NumberFormatInfo" /> object cannot be obtained from <paramref name="provider" />, the return value is formatted using the <see cref="T:System.Globalization.NumberFormatInfo" /> object for the thread current culture. For information about the thread current culture, see <see cref="P:System.Threading.Thread.CurrentCulture" />.</para><para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para><list type="bullet"><item><para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para></item><item><para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The string representation of the value of this instance as specified by <paramref name="provider" />.</para></returns><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />An object that supplies culture-specific formatting information. </param></Docs><Excluded>0</Excluded></Member><Member MemberName="ToString"><MemberSignature Language="ILASM" Value=".method public hidebysig instance string ToString(string format)" /><MemberSignature Language="C#" Value="public string ToString (string format);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig instance string ToString(string format) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters><Parameter Name="format" Type="System.String" /></Parameters><Docs><exception cref="T:System.FormatException"><paramref name="format" /> is invalid.</exception><example><para>This example demonstrates converting a <see cref="T:System.Int32" /> to a string.</para><code lang="C#">using System;
public class Int32ToStringExample {
   public static void Main() {
      Int32 i = 32;
      Console.WriteLine(i);
      String[] formats = {"c", "d", "e", "f", "g", "n", "p", "x" };
      foreach(String str in formats)
         Console.WriteLine("{0}: {1}", str, i.ToString(str));
   }
}
</code><para>The output is</para><c><para>32</para><para>c: $32.00</para><para>d: 32</para><para>e: 3.200000e+001</para><para>f: 32.00</para><para>g: 32</para><para>n: 32.00</para><para>p: 3,200.00 %</para><para>x: 20</para></c></example><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Int32.ToString(System.String)" /> method formats an <see cref="T:System.Int32" /> value in a specified format by using a <see cref="T:System.Globalization.NumberFormatInfo" /> object that represents the conventions of the current culture. If you want to use the default ("G", or general) format or specify a different culture, use the other overloads of the <see cref="M:System.Int32.ToString(System.String)" /> method, as follows:</para><list type="table"><listheader><item><term><para>To use format</para></term><description><para>For culture</para></description><description><para>Use the overload</para></description></item></listheader><item><term><para>Default ("G") format</para></term><description><para>Default (current) culture</para></description><description><para><see cref="M:System.Int32.ToString" /></para></description></item><item><term><para>Default ("G") format</para></term><description><para>A specific culture</para></description><description><para><see cref="M:System.Int32.ToString(System.IFormatProvider)" /></para></description></item><item><term><para>A specific format</para></term><description><para>A specific culture</para></description><description><para><see cref="M:System.Int32.ToString(System.String,System.IFormatProvider)" /></para></description></item></list><para></para><para>The <paramref name="format" /> parameter can be any valid standard numeric format specifier except for "R", as well as any combination of custom numeric format specifiers. If <paramref name="format" /> is null or an empty string (""), the return value of this instance is formatted with the general numeric format specifier ("G").</para><para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para><list type="bullet"><item><para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para></item><item><para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para></item></list><para>The return value of this instance is formatted with the <see cref="T:System.Globalization.NumberFormatInfo" /> for the current culture.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the numeric value of this instance to its equivalent string representation, using the specified format.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The string representation of the value of this instance as specified by <paramref name="format" />.</para></returns><param name="format"><attribution license="cc4" from="Microsoft" modified="false" />A standard or custom numeric format string.</param></Docs><Excluded>0</Excluded></Member><Member MemberName="ToString"><MemberSignature Language="ILASM" Value=".method public final hidebysig virtual string ToString(string format, class System.IFormatProvider provider)" /><MemberSignature Language="C#" Value="public string ToString (string format, IFormatProvider provider);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance string ToString(string format, class System.IFormatProvider provider) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters><Parameter Name="format" Type="System.String" /><Parameter Name="provider" Type="System.IFormatProvider" /></Parameters><Docs><exception cref="T:System.FormatException"><paramref name="format" /> is invalid.</exception><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="M:System.Int32.ToString(System.String,System.IFormatProvider)" /> method formats an <see cref="T:System.Int32" /> value in a specified format by using the <see cref="T:System.Globalization.NumberFormatInfo" /> object of a specified culture. If you want to use default format or culture settings, use the other overloads of the <see cref="M:System.Int32.ToString(System.String)" /> method, as follows:</para><list type="table"><listheader><item><term><para>To use format</para></term><description><para>For culture</para></description><description><para>Use the overload</para></description></item></listheader><item><term><para>Default ("G") format</para></term><description><para>Default (current) culture</para></description><description><para><see cref="M:System.Int32.ToString" /></para></description></item><item><term><para>Default ("G") format</para></term><description><para>A specific culture</para></description><description><para><see cref="M:System.Int32.ToString(System.IFormatProvider)" /></para></description></item><item><term><para>A specific format</para></term><description><para>Default (current) culture</para></description><description><para><see cref="M:System.Int32.ToString(System.String)" /></para></description></item></list><para></para><para>The <paramref name="format" /> parameter can be either a standard or a custom numeric format string. All standard numeric format strings other than "R" (or "r") are supported, as are all custom numeric format characters. If <paramref name="format" /> is null or an empty string (""), the return value for this instance is formatted with the general numeric format specifier ("G").</para><para>The <paramref name="provider" /> parameter is an object that implements the <see cref="T:System.IFormatProvider" /> interface. Its <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method returns a <see cref="T:System.Globalization.NumberFormatInfo" /> object that provides culture-specific format information about the format of the string that is returned by this method. The object that implements <see cref="T:System.IFormatProvider" /> can be any of the following:</para><list type="bullet"><item><para>A <see cref="T:System.Globalization.CultureInfo" /> object that represents the culture whose formatting rules are to be used.</para></item><item><para>A <see cref="T:System.Globalization.NumberFormatInfo" /> object that contains specific numeric formatting information for this value.</para></item><item><para>A custom object that implements <see cref="T:System.IFormatProvider" /> and whose <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method returns a <see cref="T:System.Globalization.NumberFormatInfo" /> object that provides formatting information. </para></item></list><para>If <paramref name="provider" /> is null or a <see cref="T:System.Globalization.NumberFormatInfo" /> object cannot be obtained from <paramref name="provider" />, the return value for this instance is formatted with the <see cref="T:System.Globalization.NumberFormatInfo" /> for the current culture.</para><para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para><list type="bullet"><item><para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para></item><item><para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The string representation of the value of this instance as specified by <paramref name="format" /> and <paramref name="provider" />.</para></returns><param name="format"><attribution license="cc4" from="Microsoft" modified="false" />A standard or custom numeric format string.</param><param name="provider"><attribution license="cc4" from="Microsoft" modified="false" />An object that supplies culture-specific formatting information. </param></Docs><Excluded>0</Excluded></Member><Member MemberName="TryParse"><MemberSignature Language="C#" Value="public static bool TryParse (string s, out int result);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig bool TryParse(string s, int32 result) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="s" Type="System.String" /><Parameter Name="result" Type="System.Int32&amp;" RefType="out" /></Parameters><Docs><param name="s">To be added.</param><param name="result">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks><since version=".NET 2.0" /></Docs></Member><Member MemberName="TryParse"><MemberSignature Language="C#" Value="public static bool TryParse (string s, System.Globalization.NumberStyles style, IFormatProvider provider, out int result);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig bool TryParse(string s, valuetype System.Globalization.NumberStyles style, class System.IFormatProvider provider, int32 result) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="s" Type="System.String" /><Parameter Name="style" Type="System.Globalization.NumberStyles" /><Parameter Name="provider" Type="System.IFormatProvider" /><Parameter Name="result" Type="System.Int32&amp;" RefType="out" /></Parameters><Docs><param name="s">To be added.</param><param name="style">To be added.</param><param name="provider">To be added.</param><param name="result">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks><since version=".NET 2.0" /></Docs></Member></Members><TypeExcluded>0</TypeExcluded></Type>