64 lines
2.6 KiB
C#
64 lines
2.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
/// <summary>Provides the connection between an instance of <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and the formatter-provided class best suited to parse the data inside the <see cref="T:System.Runtime.Serialization.SerializationInfo" />.</summary>
|
|
// Token: 0x0200045B RID: 1115
|
|
[Token(Token = "0x200045B")]
|
|
[ComVisible(true)]
|
|
[CLSCompliant(false)]
|
|
public interface IFormatterConverter
|
|
{
|
|
/// <summary>Converts a value to the given <see cref="T:System.Type" />.</summary>
|
|
/// <param name="value">The object to be converted.</param>
|
|
/// <param name="type">The <see cref="T:System.Type" /> into which <paramref name="value" /> is to be converted.</param>
|
|
/// <returns>The converted <paramref name="value" />.</returns>
|
|
// Token: 0x06002693 RID: 9875
|
|
[Token(Token = "0x6002693")]
|
|
[Address(Slot = "0")]
|
|
object Convert(object value, Type type);
|
|
|
|
/// <summary>Converts a value to a <see cref="T:System.Boolean" />.</summary>
|
|
/// <param name="value">The object to be converted.</param>
|
|
/// <returns>The converted <paramref name="value" />.</returns>
|
|
// Token: 0x06002694 RID: 9876
|
|
[Token(Token = "0x6002694")]
|
|
[Address(Slot = "1")]
|
|
bool ToBoolean(object value);
|
|
|
|
/// <summary>Converts a value to a 32-bit signed integer.</summary>
|
|
/// <param name="value">The object to be converted.</param>
|
|
/// <returns>The converted <paramref name="value" />.</returns>
|
|
// Token: 0x06002695 RID: 9877
|
|
[Token(Token = "0x6002695")]
|
|
[Address(Slot = "2")]
|
|
int ToInt32(object value);
|
|
|
|
/// <summary>Converts a value to a 64-bit signed integer.</summary>
|
|
/// <param name="value">The object to be converted.</param>
|
|
/// <returns>The converted <paramref name="value" />.</returns>
|
|
// Token: 0x06002696 RID: 9878
|
|
[Token(Token = "0x6002696")]
|
|
[Address(Slot = "3")]
|
|
long ToInt64(object value);
|
|
|
|
/// <summary>Converts a value to a single-precision floating-point number.</summary>
|
|
/// <param name="value">The object to be converted.</param>
|
|
/// <returns>The converted <paramref name="value" />.</returns>
|
|
// Token: 0x06002697 RID: 9879
|
|
[Token(Token = "0x6002697")]
|
|
[Address(Slot = "4")]
|
|
float ToSingle(object value);
|
|
|
|
/// <summary>Converts a value to a <see cref="T:System.String" />.</summary>
|
|
/// <param name="value">The object to be converted.</param>
|
|
/// <returns>The converted <paramref name="value" />.</returns>
|
|
// Token: 0x06002698 RID: 9880
|
|
[Token(Token = "0x6002698")]
|
|
[Address(Slot = "5")]
|
|
string ToString(object value);
|
|
}
|
|
}
|