Files
Aug2021-Cpp2IL-Dump/mscorlib/System/IConvertible.cs
T
2026-04-10 22:50:51 +02:00

151 lines
9.7 KiB
C#

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