95 lines
5.0 KiB
C#
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: 0x02000455 RID: 1109
|
|
[Token(Token = "0x2000455")]
|
|
[ComVisible(true)]
|
|
public class FormatterConverter : IFormatterConverter
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.FormatterConverter" /> class.</summary>
|
|
// Token: 0x06002674 RID: 9844 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002674")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
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: 0x06002675 RID: 9845 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002675")]
|
|
[Address(RVA = "0x2CA2A00", Offset = "0x2CA1A00", VA = "0x182CA2A00", 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: 0x06002676 RID: 9846 RVA: 0x00017A78 File Offset: 0x00015C78
|
|
[Token(Token = "0x6002676")]
|
|
[Address(RVA = "0x2CA2AD0", Offset = "0x2CA1AD0", VA = "0x182CA2AD0", 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: 0x06002677 RID: 9847 RVA: 0x00017A90 File Offset: 0x00015C90
|
|
[Token(Token = "0x6002677")]
|
|
[Address(RVA = "0x2CA2B90", Offset = "0x2CA1B90", VA = "0x182CA2B90", 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: 0x06002678 RID: 9848 RVA: 0x00017AA8 File Offset: 0x00015CA8
|
|
[Token(Token = "0x6002678")]
|
|
[Address(RVA = "0x2CA2C50", Offset = "0x2CA1C50", VA = "0x182CA2C50", 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: 0x06002679 RID: 9849 RVA: 0x00017AC0 File Offset: 0x00015CC0
|
|
[Token(Token = "0x6002679")]
|
|
[Address(RVA = "0x2CA2D10", Offset = "0x2CA1D10", VA = "0x182CA2D10", 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: 0x0600267A RID: 9850 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600267A")]
|
|
[Address(RVA = "0x2CA2DD0", Offset = "0x2CA1DD0", VA = "0x182CA2DD0", Slot = "9")]
|
|
public string ToString(object value)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|