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: 0x0200010C RID: 268 [Token(Token = "0x200010C")] [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: 0x060009C7 RID: 2503 [Token(Token = "0x60009C7")] [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: 0x060009C8 RID: 2504 [Token(Token = "0x60009C8")] [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: 0x060009C9 RID: 2505 [Token(Token = "0x60009C9")] [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: 0x060009CA RID: 2506 [Token(Token = "0x60009CA")] [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: 0x060009CB RID: 2507 [Token(Token = "0x60009CB")] [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: 0x060009CC RID: 2508 [Token(Token = "0x60009CC")] [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: 0x060009CD RID: 2509 [Token(Token = "0x60009CD")] [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: 0x060009CE RID: 2510 [Token(Token = "0x60009CE")] [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: 0x060009CF RID: 2511 [Token(Token = "0x60009CF")] [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: 0x060009D0 RID: 2512 [Token(Token = "0x60009D0")] [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: 0x060009D1 RID: 2513 [Token(Token = "0x60009D1")] [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: 0x060009D2 RID: 2514 [Token(Token = "0x60009D2")] [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: 0x060009D3 RID: 2515 [Token(Token = "0x60009D3")] [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: 0x060009D4 RID: 2516 [Token(Token = "0x60009D4")] [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: 0x060009D5 RID: 2517 [Token(Token = "0x60009D5")] [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: 0x060009D6 RID: 2518 [Token(Token = "0x60009D6")] [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: 0x060009D7 RID: 2519 [Token(Token = "0x60009D7")] [Address(Slot = "16")] object ToType(Type conversionType, IFormatProvider provider); } }