using System; using System.Globalization; using System.Runtime.InteropServices; using System.Threading; namespace System { /// Represents a 32-bit signed integer. /// 1 // Token: 0x02000006 RID: 6 [ComVisible(true)] [Serializable] public struct Int32 : IFormattable, IConvertible, IComparable, IComparable, IEquatable { /// For a description of this member, see . /// true if the value of the current instance is not zero; otherwise, false. /// This parameter is ignored. // Token: 0x06000045 RID: 69 RVA: 0x00002660 File Offset: 0x00000860 bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(this); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x06000046 RID: 70 RVA: 0x0000266C File Offset: 0x0000086C byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(this); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x06000047 RID: 71 RVA: 0x00002678 File Offset: 0x00000878 char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(this); } /// This conversion is not supported. Attempting to use this method throws an . /// This conversion is not supported. No value is returned. /// This parameter is ignored. /// In all cases. // Token: 0x06000048 RID: 72 RVA: 0x00002684 File Offset: 0x00000884 DateTime IConvertible.ToDateTime(IFormatProvider provider) { return Convert.ToDateTime(this); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x06000049 RID: 73 RVA: 0x00002690 File Offset: 0x00000890 decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(this); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x0600004A RID: 74 RVA: 0x0000269C File Offset: 0x0000089C double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(this); } /// For a description of this member, see . /// The value of the current instance, converted to an . /// This parameter is ignored. // Token: 0x0600004B RID: 75 RVA: 0x000026A8 File Offset: 0x000008A8 short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(this); } /// For a description of this member, see . /// The value of the current instance, unchanged. /// This parameter is ignored. // Token: 0x0600004C RID: 76 RVA: 0x000026B4 File Offset: 0x000008B4 int IConvertible.ToInt32(IFormatProvider provider) { return this; } /// For a description of this member, see . /// The value of the current instance, converted to an . /// This parameter is ignored. // Token: 0x0600004D RID: 77 RVA: 0x000026B8 File Offset: 0x000008B8 long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(this); } /// For a description of this member, see . /// The value of the current instance, converted to an . /// This parameter is ignored. // Token: 0x0600004E RID: 78 RVA: 0x000026C4 File Offset: 0x000008C4 sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(this); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x0600004F RID: 79 RVA: 0x000026D0 File Offset: 0x000008D0 float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(this); } /// For a description of this member, see . /// The value of the current instance, converted to . /// The type to which to convert this value. /// An implementation that provides information about the format of the returned value. // Token: 0x06000050 RID: 80 RVA: 0x000026DC File Offset: 0x000008DC object IConvertible.ToType(Type targetType, IFormatProvider provider) { if (targetType == null) { throw new ArgumentNullException("targetType"); } return Convert.ToType(this, targetType, provider, false); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x06000051 RID: 81 RVA: 0x0000270C File Offset: 0x0000090C ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(this); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x06000052 RID: 82 RVA: 0x00002718 File Offset: 0x00000918 uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(this); } /// For a description of this member, see . /// The value of the current instance, converted to a . /// This parameter is ignored. // Token: 0x06000053 RID: 83 RVA: 0x00002724 File Offset: 0x00000924 ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(this); } /// Compares this instance to a specified object and returns an indication of their relative values. /// A signed number indicating the relative values of this instance and .Return Value Description Less than zero This instance is less than . Zero This instance is equal to . Greater than zero This instance is greater than .-or- is null. /// An object to compare, or null. /// /// is not an . /// 2 // Token: 0x06000054 RID: 84 RVA: 0x00002730 File Offset: 0x00000930 public int CompareTo(object value) { if (value == null) { return 1; } if (!(value is int)) { throw new ArgumentException(Locale.GetText("Value is not a System.Int32")); } int num = (int)value; if (this == num) { return 0; } if (this > num) { return 1; } return -1; } /// Returns a value indicating whether this instance is equal to a specified object. /// true if is an instance of and equals the value of this instance; otherwise, false. /// An object to compare with this instance. /// 2 // Token: 0x06000055 RID: 85 RVA: 0x0000277C File Offset: 0x0000097C public override bool Equals(object obj) { return obj is int && (int)obj == this; } /// Returns the hash code for this instance. /// A 32-bit signed integer hash code. /// 2 // Token: 0x06000056 RID: 86 RVA: 0x00002798 File Offset: 0x00000998 public override int GetHashCode() { return this; } /// Compares this instance to a specified 32-bit signed integer and returns an indication of their relative values. /// A signed number indicating the relative values of this instance and .Return Value Description Less than zero This instance is less than . Zero This instance is equal to . Greater than zero This instance is greater than . /// An integer to compare. /// 2 // Token: 0x06000057 RID: 87 RVA: 0x0000279C File Offset: 0x0000099C public int CompareTo(int value) { if (this == value) { return 0; } if (this > value) { return 1; } return -1; } /// Returns a value indicating whether this instance is equal to a specified value. /// true if has the same value as this instance; otherwise, false. /// An value to compare to this instance. /// 2 // Token: 0x06000058 RID: 88 RVA: 0x000027B4 File Offset: 0x000009B4 public bool Equals(int obj) { return obj == this; } // Token: 0x06000059 RID: 89 RVA: 0x000027BC File Offset: 0x000009BC internal static bool ProcessTrailingWhitespace(bool tryParse, string s, int position, ref Exception exc) { int length = s.Length; for (int i = position; i < length; i++) { char c = s[i]; if (c != '\0' && !char.IsWhiteSpace(c)) { if (!tryParse) { exc = int.GetFormatException(); } return false; } } return true; } // Token: 0x0600005A RID: 90 RVA: 0x0000280C File Offset: 0x00000A0C internal static bool Parse(string s, bool tryParse, out int result, out Exception exc) { int num = 0; int num2 = 1; bool flag = false; result = 0; exc = null; if (s == null) { if (!tryParse) { exc = new ArgumentNullException("s"); } return false; } int length = s.Length; int i; char c; for (i = 0; i < length; i++) { c = s[i]; if (!char.IsWhiteSpace(c)) { break; } } if (i == length) { if (!tryParse) { exc = int.GetFormatException(); } return false; } c = s[i]; if (c == '+') { i++; } else if (c == '-') { num2 = -1; i++; } while (i < length) { c = s[i]; if (c == '\0') { i = length; } else { if (c >= '0' && c <= '9') { byte b = (byte)(c - '0'); if (num <= 214748364) { if (num != 214748364) { num = num * 10 + (int)b; flag = true; goto IL_15F; } if (b <= 7 || (num2 != 1 && b <= 8)) { if (num2 == -1) { num = num * num2 * 10 - (int)b; } else { num = num * 10 + (int)b; } if (int.ProcessTrailingWhitespace(tryParse, s, i + 1, ref exc)) { result = num; return true; } } } if (!tryParse) { exc = new OverflowException("Value is too large"); } return false; } if (!int.ProcessTrailingWhitespace(tryParse, s, i, ref exc)) { return false; } } IL_15F: i++; } if (!flag) { if (!tryParse) { exc = int.GetFormatException(); } return false; } if (num2 == -1) { result = num * num2; } else { result = num; } return true; } /// Converts the string representation of a number in a specified culture-specific format to its 32-bit signed integer equivalent. /// A 32-bit signed integer equivalent to the number specified in . /// A string containing a number to convert. /// An that supplies culture-specific formatting information about . /// /// is null. /// /// is not of the correct format. /// /// represents a number less than or greater than . /// 1 // Token: 0x0600005B RID: 91 RVA: 0x000029C4 File Offset: 0x00000BC4 public static int Parse(string s, IFormatProvider provider) { return int.Parse(s, NumberStyles.Integer, provider); } /// Converts the string representation of a number in a specified style to its 32-bit signed integer equivalent. /// A 32-bit signed integer equivalent to the number specified in . /// A string containing a number to convert. /// A bitwise combination of the enumeration values that indicates the style elements that can be present in . A typical value to specify is . /// /// is null. /// /// is not a value. -or- is not a combination of and values. /// /// is not in a format compliant with . /// /// represents a number less than or greater than . -or- includes non-zero, fractional digits. /// 1 // Token: 0x0600005C RID: 92 RVA: 0x000029D0 File Offset: 0x00000BD0 public static int Parse(string s, NumberStyles style) { return int.Parse(s, style, null); } // Token: 0x0600005D RID: 93 RVA: 0x000029DC File Offset: 0x00000BDC internal static bool CheckStyle(NumberStyles style, bool tryParse, ref Exception exc) { if ((style & NumberStyles.AllowHexSpecifier) != NumberStyles.None) { NumberStyles numberStyles = style ^ NumberStyles.AllowHexSpecifier; if ((numberStyles & NumberStyles.AllowLeadingWhite) != NumberStyles.None) { numberStyles ^= NumberStyles.AllowLeadingWhite; } if ((numberStyles & NumberStyles.AllowTrailingWhite) != NumberStyles.None) { numberStyles ^= NumberStyles.AllowTrailingWhite; } if (numberStyles != NumberStyles.None) { if (!tryParse) { exc = new ArgumentException("With AllowHexSpecifier only AllowLeadingWhite and AllowTrailingWhite are permitted."); } return false; } } else if (style > NumberStyles.Any) { if (!tryParse) { exc = new ArgumentException("Not a valid number style"); } return false; } return true; } // Token: 0x0600005E RID: 94 RVA: 0x00002A54 File Offset: 0x00000C54 internal static bool JumpOverWhite(ref int pos, string s, bool reportError, bool tryParse, ref Exception exc) { while (pos < s.Length && char.IsWhiteSpace(s[pos])) { pos++; } if (reportError && pos >= s.Length) { if (!tryParse) { exc = int.GetFormatException(); } return false; } return true; } // Token: 0x0600005F RID: 95 RVA: 0x00002AB0 File Offset: 0x00000CB0 internal static void FindSign(ref int pos, string s, NumberFormatInfo nfi, ref bool foundSign, ref bool negative) { if (pos + nfi.NegativeSign.Length <= s.Length && s.IndexOf(nfi.NegativeSign, pos, nfi.NegativeSign.Length) == pos) { negative = true; foundSign = true; pos += nfi.NegativeSign.Length; } else if (pos + nfi.PositiveSign.Length < s.Length && s.IndexOf(nfi.PositiveSign, pos, nfi.PositiveSign.Length) == pos) { negative = false; pos += nfi.PositiveSign.Length; foundSign = true; } } // Token: 0x06000060 RID: 96 RVA: 0x00002B64 File Offset: 0x00000D64 internal static void FindCurrency(ref int pos, string s, NumberFormatInfo nfi, ref bool foundCurrency) { if (pos + nfi.CurrencySymbol.Length <= s.Length && s.Substring(pos, nfi.CurrencySymbol.Length) == nfi.CurrencySymbol) { foundCurrency = true; pos += nfi.CurrencySymbol.Length; } } // Token: 0x06000061 RID: 97 RVA: 0x00002BC0 File Offset: 0x00000DC0 internal static bool FindExponent(ref int pos, string s, ref int exponent, bool tryParse, ref Exception exc) { exponent = 0; long num = 0L; int i = s.IndexOfAny(new char[] { 'e', 'E' }, pos); if (i < 0) { exc = null; return false; } if (++i == s.Length) { exc = ((!tryParse) ? int.GetFormatException() : null); return true; } if (s[i] == '-') { exc = ((!tryParse) ? new OverflowException("Value too large or too small.") : null); return true; } if (s[i] == '+' && ++i == s.Length) { exc = ((!tryParse) ? int.GetFormatException() : null); return true; } while (i < s.Length) { if (!char.IsDigit(s[i])) { exc = ((!tryParse) ? int.GetFormatException() : null); return true; } checked { num = num * 10L - unchecked((long)(checked(s[i] - '0'))); if (num < -2147483648L || num > 2147483647L) { exc = ((!tryParse) ? new OverflowException("Value too large or too small.") : null); return true; } } i++; } num = -num; exc = null; exponent = (int)num; pos = i; return true; } // Token: 0x06000062 RID: 98 RVA: 0x00002D0C File Offset: 0x00000F0C internal static bool FindOther(ref int pos, string s, string other) { if (pos + other.Length <= s.Length && s.Substring(pos, other.Length) == other) { pos += other.Length; return true; } return false; } // Token: 0x06000063 RID: 99 RVA: 0x00002D54 File Offset: 0x00000F54 internal static bool ValidDigit(char e, bool allowHex) { if (allowHex) { return char.IsDigit(e) || (e >= 'A' && e <= 'F') || (e >= 'a' && e <= 'f'); } return char.IsDigit(e); } // Token: 0x06000064 RID: 100 RVA: 0x00002DA0 File Offset: 0x00000FA0 internal static Exception GetFormatException() { return new FormatException("Input string was not in the correct format"); } // Token: 0x06000065 RID: 101 RVA: 0x00002DAC File Offset: 0x00000FAC internal static bool Parse(string s, NumberStyles style, IFormatProvider fp, bool tryParse, out int result, out Exception exc) { result = 0; exc = null; if (s == null) { if (!tryParse) { exc = new ArgumentNullException(); } return false; } if (s.Length == 0) { if (!tryParse) { exc = int.GetFormatException(); } return false; } NumberFormatInfo numberFormatInfo = null; if (fp != null) { Type typeFromHandle = typeof(NumberFormatInfo); numberFormatInfo = (NumberFormatInfo)fp.GetFormat(typeFromHandle); } if (numberFormatInfo == null) { numberFormatInfo = Thread.CurrentThread.CurrentCulture.NumberFormat; } if (!int.CheckStyle(style, tryParse, ref exc)) { return false; } bool flag = (style & NumberStyles.AllowCurrencySymbol) != NumberStyles.None; bool flag2 = (style & NumberStyles.AllowHexSpecifier) != NumberStyles.None; bool flag3 = (style & NumberStyles.AllowThousands) != NumberStyles.None; bool flag4 = (style & NumberStyles.AllowDecimalPoint) != NumberStyles.None; bool flag5 = (style & NumberStyles.AllowParentheses) != NumberStyles.None; bool flag6 = (style & NumberStyles.AllowTrailingSign) != NumberStyles.None; bool flag7 = (style & NumberStyles.AllowLeadingSign) != NumberStyles.None; bool flag8 = (style & NumberStyles.AllowTrailingWhite) != NumberStyles.None; bool flag9 = (style & NumberStyles.AllowLeadingWhite) != NumberStyles.None; bool flag10 = (style & NumberStyles.AllowExponent) != NumberStyles.None; int num = 0; if (flag9 && !int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } bool flag11 = false; bool flag12 = false; bool flag13 = false; bool flag14 = false; if (flag5 && s[num] == '(') { flag11 = true; flag13 = true; flag12 = true; num++; if (flag9 && int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } if (s.Substring(num, numberFormatInfo.NegativeSign.Length) == numberFormatInfo.NegativeSign) { if (!tryParse) { exc = int.GetFormatException(); } return false; } if (s.Substring(num, numberFormatInfo.PositiveSign.Length) == numberFormatInfo.PositiveSign) { if (!tryParse) { exc = int.GetFormatException(); } return false; } } if (flag7 && !flag13) { int.FindSign(ref num, s, numberFormatInfo, ref flag13, ref flag12); if (flag13) { if (flag9 && !int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } if (flag) { int.FindCurrency(ref num, s, numberFormatInfo, ref flag14); if (flag14 && flag9 && !int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } } } } if (flag && !flag14) { int.FindCurrency(ref num, s, numberFormatInfo, ref flag14); if (flag14) { if (flag9 && !int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } if (flag14 && !flag13 && flag7) { int.FindSign(ref num, s, numberFormatInfo, ref flag13, ref flag12); if (flag13 && flag9 && !int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } } } } int num2 = 0; int num3 = 0; bool flag15 = false; int num4 = 0; do { if (!int.ValidDigit(s[num], flag2)) { if (!flag3 || !int.FindOther(ref num, s, numberFormatInfo.NumberGroupSeparator)) { if (flag15 || !flag4 || !int.FindOther(ref num, s, numberFormatInfo.NumberDecimalSeparator)) { break; } flag15 = true; } } else if (flag2) { num3++; char c = s[num++]; int num5; if (char.IsDigit(c)) { num5 = (int)(c - '0'); } else if (char.IsLower(c)) { num5 = (int)(c - 'a' + '\n'); } else { num5 = (int)(c - 'A' + '\n'); } uint num6 = (uint)num2; if (tryParse) { if ((num6 & 4026531840U) != 0U) { return false; } num2 = (int)(num6 * 16U + (uint)num5); } else { num2 = (int)(checked(num6 * 16U + (uint)num5)); } } else if (flag15) { num3++; if (s[num++] != '0') { goto Block_50; } } else { num3++; try { num2 = checked(num2 * 10 - (int)(s[num++] - '0')); } catch (OverflowException) { if (!tryParse) { exc = new OverflowException("Value too large or too small."); } return false; } } } while (num < s.Length); goto IL_43A; Block_50: if (!tryParse) { exc = new OverflowException("Value too large or too small."); } return false; IL_43A: if (num3 == 0) { if (!tryParse) { exc = int.GetFormatException(); } return false; } if (flag10 && int.FindExponent(ref num, s, ref num4, tryParse, ref exc) && exc != null) { return false; } if (flag6 && !flag13) { int.FindSign(ref num, s, numberFormatInfo, ref flag13, ref flag12); if (flag13) { if (flag8 && !int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } if (flag) { int.FindCurrency(ref num, s, numberFormatInfo, ref flag14); } } } if (flag && !flag14) { int.FindCurrency(ref num, s, numberFormatInfo, ref flag14); if (flag14) { if (flag8 && !int.JumpOverWhite(ref num, s, true, tryParse, ref exc)) { return false; } if (!flag13 && flag6) { int.FindSign(ref num, s, numberFormatInfo, ref flag13, ref flag12); } } } if (flag8 && num < s.Length && !int.JumpOverWhite(ref num, s, false, tryParse, ref exc)) { return false; } if (flag11) { if (num >= s.Length || s[num++] != ')') { if (!tryParse) { exc = int.GetFormatException(); } return false; } if (flag8 && num < s.Length && !int.JumpOverWhite(ref num, s, false, tryParse, ref exc)) { return false; } } if (num < s.Length && s[num] != '\0') { if (!tryParse) { exc = int.GetFormatException(); } return false; } if (!flag12 && !flag2) { if (tryParse) { long num7 = -(long)num2; if (num7 < -2147483648L || num7 > 2147483647L) { return false; } num2 = (int)num7; } else { num2 = checked(0 - num2); } } if (num4 > 0) { double num8 = Math.Pow(10.0, (double)num4) * (double)num2; if (num8 < -2147483648.0 || num8 > 2147483647.0) { if (!tryParse) { exc = new OverflowException("Value too large or too small."); } return false; } num2 = (int)num8; } result = num2; return true; } /// Converts the string representation of a number to its 32-bit signed integer equivalent. /// A 32-bit signed integer equivalent to the number contained in . /// A string containing a number to convert. /// /// is null. /// /// is not in the correct format. /// /// represents a number less than or greater than . /// 1 // Token: 0x06000066 RID: 102 RVA: 0x00003444 File Offset: 0x00001644 public static int Parse(string s) { int num; Exception ex; if (!int.Parse(s, false, out num, out ex)) { throw ex; } return num; } /// Converts the string representation of a number in a specified style and culture-specific format to its 32-bit signed integer equivalent. /// A 32-bit signed integer equivalent to the number specified in . /// A string containing a number to convert. /// A bitwise combination of enumeration values that indicates the style elements that can be present in . A typical value to specify is . /// An that supplies culture-specific information about the format of . /// /// is null. /// /// is not a value. -or- is not a combination of and values. /// /// is not in a format compliant with . /// /// represents a number less than or greater than . -or- includes non-zero, fractional digits. /// 1 // Token: 0x06000067 RID: 103 RVA: 0x00003464 File Offset: 0x00001664 public static int Parse(string s, NumberStyles style, IFormatProvider provider) { int num; Exception ex; if (!int.Parse(s, style, provider, false, out num, out ex)) { throw ex; } return num; } /// Converts the string representation of a number to its 32-bit signed integer equivalent. A return value indicates whether the conversion succeeded. /// true if was converted successfully; otherwise, false. /// A string containing a number to convert. /// When this method returns, contains the 32-bit signed integer value equivalent to the number contained in , if the conversion succeeded, or zero if the conversion failed. The conversion fails if the parameter is null, is not of the correct format, or represents a number less than or greater than . This parameter is passed uninitialized. /// 1 // Token: 0x06000068 RID: 104 RVA: 0x00003488 File Offset: 0x00001688 public static bool TryParse(string s, out int result) { Exception ex; if (!int.Parse(s, true, out result, out ex)) { result = 0; return false; } return true; } /// Converts the string representation of a number in a specified style and culture-specific format to its 32-bit signed integer equivalent. A return value indicates whether the conversion succeeded. /// true if was converted successfully; otherwise, false. /// A string containing a number to convert. The string is interpreted using the style specified by . /// A bitwise combination of enumeration values that indicates the style elements that can be present in . A typical value to specify is . /// An object that supplies culture-specific formatting information about . /// When this method returns, contains the 32-bit signed integer value equivalent to the number contained in , if the conversion succeeded, or zero if the conversion failed. The conversion fails if the parameter is null, is not in a format compliant with , or represents a number less than or greater than . This parameter is passed uninitialized. /// /// is not a value. -or- is not a combination of and values. /// 1 // Token: 0x06000069 RID: 105 RVA: 0x000034AC File Offset: 0x000016AC public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out int result) { Exception ex; if (!int.Parse(s, style, provider, true, out result, out ex)) { result = 0; return false; } return true; } /// Converts the numeric value of this instance to its equivalent string representation. /// 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. /// 1 // Token: 0x0600006A RID: 106 RVA: 0x000034D0 File Offset: 0x000016D0 public override string ToString() { return NumberFormatter.NumberToString(this, null); } /// Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. /// The string representation of the value of this instance as specified by . /// An that supplies culture-specific formatting information. /// 1 // Token: 0x0600006B RID: 107 RVA: 0x000034DC File Offset: 0x000016DC public string ToString(IFormatProvider provider) { return NumberFormatter.NumberToString(this, provider); } /// Converts the numeric value of this instance to its equivalent string representation, using the specified format. /// The string representation of the value of this instance as specified by . /// A numeric format string (see Remarks). /// /// is invalid or not supported. /// 1 // Token: 0x0600006C RID: 108 RVA: 0x000034E8 File Offset: 0x000016E8 public string ToString(string format) { return this.ToString(format, null); } /// Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. /// The string representation of the value of this instance as specified by and . /// A numeric format string (see Remarks). /// An that supplies culture-specific formatting information. /// /// is invalid or not supported. /// 1 // Token: 0x0600006D RID: 109 RVA: 0x000034F4 File Offset: 0x000016F4 public string ToString(string format, IFormatProvider provider) { return NumberFormatter.NumberToString(format, this, provider); } /// Returns the for value type . /// The enumerated constant, . /// 2 // Token: 0x0600006E RID: 110 RVA: 0x00003500 File Offset: 0x00001700 public TypeCode GetTypeCode() { return TypeCode.Int32; } /// Represents the largest possible value of an . This field is constant. /// 1 // Token: 0x04000001 RID: 1 public const int MaxValue = 2147483647; /// Represents the smallest possible value of . This field is constant. /// 1 // Token: 0x04000002 RID: 2 public const int MinValue = -2147483648; // Token: 0x04000003 RID: 3 internal int m_value; } }