using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace System { /// Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value. // Token: 0x02000105 RID: 261 [Token(Token = "0x2000105")] [CLSCompliant(false)] [ComVisible(true)] public interface IConvertible { /// Returns the for this instance. /// The enumerated constant that is the of the class or value type that implements this interface. // Token: 0x0600099D RID: 2461 [Token(Token = "0x600099D")] [Address(Slot = "0")] TypeCode GetTypeCode(); /// Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// A Boolean value equivalent to the value of this instance. // Token: 0x0600099E RID: 2462 [Token(Token = "0x600099E")] [Address(Slot = "1")] bool ToBoolean(IFormatProvider provider); /// Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// A Unicode character equivalent to the value of this instance. // Token: 0x0600099F RID: 2463 [Token(Token = "0x600099F")] [Address(Slot = "2")] char ToChar(IFormatProvider provider); /// Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 8-bit signed integer equivalent to the value of this instance. // Token: 0x060009A0 RID: 2464 [Token(Token = "0x60009A0")] [Address(Slot = "3")] sbyte ToSByte(IFormatProvider provider); /// Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 8-bit unsigned integer equivalent to the value of this instance. // Token: 0x060009A1 RID: 2465 [Token(Token = "0x60009A1")] [Address(Slot = "4")] byte ToByte(IFormatProvider provider); /// Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 16-bit signed integer equivalent to the value of this instance. // Token: 0x060009A2 RID: 2466 [Token(Token = "0x60009A2")] [Address(Slot = "5")] short ToInt16(IFormatProvider provider); /// Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 16-bit unsigned integer equivalent to the value of this instance. // Token: 0x060009A3 RID: 2467 [Token(Token = "0x60009A3")] [Address(Slot = "6")] ushort ToUInt16(IFormatProvider provider); /// Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 32-bit signed integer equivalent to the value of this instance. // Token: 0x060009A4 RID: 2468 [Token(Token = "0x60009A4")] [Address(Slot = "7")] int ToInt32(IFormatProvider provider); /// Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 32-bit unsigned integer equivalent to the value of this instance. // Token: 0x060009A5 RID: 2469 [Token(Token = "0x60009A5")] [Address(Slot = "8")] uint ToUInt32(IFormatProvider provider); /// Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 64-bit signed integer equivalent to the value of this instance. // Token: 0x060009A6 RID: 2470 [Token(Token = "0x60009A6")] [Address(Slot = "9")] long ToInt64(IFormatProvider provider); /// Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// An 64-bit unsigned integer equivalent to the value of this instance. // Token: 0x060009A7 RID: 2471 [Token(Token = "0x60009A7")] [Address(Slot = "10")] ulong ToUInt64(IFormatProvider provider); /// Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// A single-precision floating-point number equivalent to the value of this instance. // Token: 0x060009A8 RID: 2472 [Token(Token = "0x60009A8")] [Address(Slot = "11")] float ToSingle(IFormatProvider provider); /// Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// A double-precision floating-point number equivalent to the value of this instance. // Token: 0x060009A9 RID: 2473 [Token(Token = "0x60009A9")] [Address(Slot = "12")] double ToDouble(IFormatProvider provider); /// Converts the value of this instance to an equivalent number using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// A number equivalent to the value of this instance. // Token: 0x060009AA RID: 2474 [Token(Token = "0x60009AA")] [Address(Slot = "13")] decimal ToDecimal(IFormatProvider provider); /// Converts the value of this instance to an equivalent using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// A instance equivalent to the value of this instance. // Token: 0x060009AB RID: 2475 [Token(Token = "0x60009AB")] [Address(Slot = "14")] DateTime ToDateTime(IFormatProvider provider); /// Converts the value of this instance to an equivalent using the specified culture-specific formatting information. /// An interface implementation that supplies culture-specific formatting information. /// A instance equivalent to the value of this instance. // Token: 0x060009AC RID: 2476 [Token(Token = "0x60009AC")] [Address(Slot = "15")] string ToString(IFormatProvider provider); /// Converts the value of this instance to an of the specified that has an equivalent value, using the specified culture-specific formatting information. /// The to which the value of this instance is converted. /// An interface implementation that supplies culture-specific formatting information. /// An instance of type whose value is equivalent to the value of this instance. // Token: 0x060009AD RID: 2477 [Token(Token = "0x60009AD")] [Address(Slot = "16")] object ToType(Type conversionType, IFormatProvider provider); } }