Files
Apr2020-Cpp2Il-Dump/mscorlib/System/Runtime/Serialization/FormatterConverter.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

95 lines
5.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.Serialization
{
/// <summary>Represents a base implementation of the <see cref="T:System.Runtime.Serialization.IFormatterConverter" /> interface that uses the <see cref="T:System.Convert" /> class and the <see cref="T:System.IConvertible" /> interface.</summary>
// Token: 0x02000439 RID: 1081
[Token(Token = "0x2000439")]
[ComVisible(true)]
public class FormatterConverter : IFormatterConverter
{
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.FormatterConverter" /> class.</summary>
// Token: 0x06002468 RID: 9320 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002468")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public FormatterConverter()
{
}
/// <summary>Converts a value to the given <see cref="T:System.Type" />.</summary>
/// <param name="value">The object to convert.</param>
/// <param name="type">The <see cref="T:System.Type" /> into which <paramref name="value" /> is converted.</param>
/// <returns>The converted <paramref name="value" /> or <see langword="null" /> if the <paramref name="type" /> parameter is <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002469 RID: 9321 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002469")]
[Address(RVA = "0x25B8890", Offset = "0x25B7690", VA = "0x1825B8890", Slot = "4")]
public object Convert(object value, Type type)
{
return null;
}
/// <summary>Converts a value to a <see cref="T:System.Boolean" />.</summary>
/// <param name="value">The object to convert.</param>
/// <returns>The converted <paramref name="value" /> or <see langword="null" /> if the <paramref name="type" /> parameter is <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600246A RID: 9322 RVA: 0x000156A8 File Offset: 0x000138A8
[Token(Token = "0x600246A")]
[Address(RVA = "0x25B8960", Offset = "0x25B7760", VA = "0x1825B8960", Slot = "5")]
public bool ToBoolean(object value)
{
return default(bool);
}
/// <summary>Converts a value to a 32-bit signed integer.</summary>
/// <param name="value">The object to convert.</param>
/// <returns>The converted <paramref name="value" /> or <see langword="null" /> if the <paramref name="type" /> parameter is <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600246B RID: 9323 RVA: 0x000156C0 File Offset: 0x000138C0
[Token(Token = "0x600246B")]
[Address(RVA = "0x25B8A20", Offset = "0x25B7820", VA = "0x1825B8A20", Slot = "6")]
public int ToInt32(object value)
{
return 0;
}
/// <summary>Converts a value to a 64-bit signed integer.</summary>
/// <param name="value">The object to convert.</param>
/// <returns>The converted <paramref name="value" /> or <see langword="null" /> if the <paramref name="type" /> parameter is <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600246C RID: 9324 RVA: 0x000156D8 File Offset: 0x000138D8
[Token(Token = "0x600246C")]
[Address(RVA = "0x25B8AE0", Offset = "0x25B78E0", VA = "0x1825B8AE0", Slot = "7")]
public long ToInt64(object value)
{
return 0L;
}
/// <summary>Converts a value to a single-precision floating-point number.</summary>
/// <param name="value">The object to convert.</param>
/// <returns>The converted <paramref name="value" /> or <see langword="null" /> if the <paramref name="type" /> parameter is <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600246D RID: 9325 RVA: 0x000156F0 File Offset: 0x000138F0
[Token(Token = "0x600246D")]
[Address(RVA = "0x25B8BA0", Offset = "0x25B79A0", VA = "0x1825B8BA0", Slot = "8")]
public float ToSingle(object value)
{
return 0f;
}
/// <summary>Converts the specified object to a <see cref="T:System.String" />.</summary>
/// <param name="value">The object to convert.</param>
/// <returns>The converted <paramref name="value" /> or <see langword="null" /> if the <paramref name="type" /> parameter is <see langword="null" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is <see langword="null" />.</exception>
// Token: 0x0600246E RID: 9326 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600246E")]
[Address(RVA = "0x25B8C60", Offset = "0x25B7A60", VA = "0x1825B8C60", Slot = "9")]
public string ToString(object value)
{
return null;
}
}
}