221 lines
10 KiB
C#
221 lines
10 KiB
C#
using System;
|
|
using System.Collections.Concurrent;
|
|
using System.Reflection;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Serialization
|
|
{
|
|
/// <summary>Provides static methods to aid with the implementation of a <see cref="T:System.Runtime.Serialization.Formatter" /> for serialization. This class cannot be inherited.</summary>
|
|
// Token: 0x0200043A RID: 1082
|
|
[Token(Token = "0x200043A")]
|
|
[ComVisible(true)]
|
|
public static class FormatterServices
|
|
{
|
|
// Token: 0x06002470 RID: 9328 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002470")]
|
|
[Address(RVA = "0x25B99D0", Offset = "0x25B87D0", VA = "0x1825B99D0")]
|
|
private static MemberInfo[] GetSerializableMembers(RuntimeType type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002471 RID: 9329 RVA: 0x00015708 File Offset: 0x00013908
|
|
[Token(Token = "0x6002471")]
|
|
[Address(RVA = "0x25B8D20", Offset = "0x25B7B20", VA = "0x1825B8D20")]
|
|
private static bool CheckSerializable(RuntimeType type)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06002472 RID: 9330 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002472")]
|
|
[Address(RVA = "0x25BA000", Offset = "0x25B8E00", VA = "0x1825BA000")]
|
|
private static MemberInfo[] InternalGetSerializableMembers(RuntimeType type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002473 RID: 9331 RVA: 0x00015720 File Offset: 0x00013920
|
|
[Token(Token = "0x6002473")]
|
|
[Address(RVA = "0x25B96B0", Offset = "0x25B84B0", VA = "0x1825B96B0")]
|
|
private static bool GetParentTypes(RuntimeType parentType, out RuntimeType[] parentTypes, out int parentTypeCount)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>Gets all the serializable members for a class of the specified <see cref="T:System.Type" /> and in the provided <see cref="T:System.Runtime.Serialization.StreamingContext" />.</summary>
|
|
/// <param name="type">The type being serialized or cloned.</param>
|
|
/// <param name="context">The context where the serialization occurs.</param>
|
|
/// <returns>An array of type <see cref="T:System.Reflection.MemberInfo" /> of the non-transient, non-static members.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="type" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06002474 RID: 9332 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002474")]
|
|
[Address(RVA = "0x25B9B70", Offset = "0x25B8970", VA = "0x1825B9B70")]
|
|
public static MemberInfo[] GetSerializableMembers(Type type, StreamingContext context)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Creates a new instance of the specified object type.</summary>
|
|
/// <param name="type">The type of object to create.</param>
|
|
/// <returns>A zeroed object of the specified type.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="type" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x06002475 RID: 9333 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002475")]
|
|
[Address(RVA = "0x25B9E50", Offset = "0x25B8C50", VA = "0x1825B9E50")]
|
|
public static object GetUninitializedObject(Type type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002476 RID: 9334 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002476")]
|
|
[Address(RVA = "0x25BAEE0", Offset = "0x25B9CE0", VA = "0x1825BAEE0")]
|
|
private static object nativeGetUninitializedObject(RuntimeType type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002477 RID: 9335 RVA: 0x00015738 File Offset: 0x00013938
|
|
[Token(Token = "0x6002477")]
|
|
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
|
|
private static bool GetEnableUnsafeTypeForwarders()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06002478 RID: 9336 RVA: 0x00015750 File Offset: 0x00013950
|
|
[Token(Token = "0x6002478")]
|
|
[Address(RVA = "0x25BACB0", Offset = "0x25B9AB0", VA = "0x1825BACB0")]
|
|
internal static bool UnsafeTypeForwardersIsEnabled()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06002479 RID: 9337 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002479")]
|
|
[Address(RVA = "0x25BAAC0", Offset = "0x25B98C0", VA = "0x1825BAAC0")]
|
|
internal static void SerializationSetValue(MemberInfo fi, object target, object value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Populates the specified object with values for each field drawn from the data array of objects.</summary>
|
|
/// <param name="obj">The object to populate.</param>
|
|
/// <param name="members">An array of <see cref="T:System.Reflection.MemberInfo" /> that describes which fields and properties to populate.</param>
|
|
/// <param name="data">An array of <see cref="T:System.Object" /> that specifies the values for each field and property to populate.</param>
|
|
/// <returns>The newly populated object.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" />, <paramref name="members" />, or <paramref name="data" /> parameter is <see langword="null" />.
|
|
/// An element of <paramref name="members" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The length of <paramref name="members" /> does not match the length of <paramref name="data" />.</exception>
|
|
/// <exception cref="T:System.Runtime.Serialization.SerializationException">An element of <paramref name="members" /> is not an instance of <see cref="T:System.Reflection.FieldInfo" />.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x0600247A RID: 9338 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600247A")]
|
|
[Address(RVA = "0x25BA7B0", Offset = "0x25B95B0", VA = "0x1825BA7B0")]
|
|
public static object PopulateObjectMembers(object obj, MemberInfo[] members, object[] data)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Extracts the data from the specified object and returns it as an array of objects.</summary>
|
|
/// <param name="obj">The object to write to the formatter.</param>
|
|
/// <param name="members">The members to extract from the object.</param>
|
|
/// <returns>An array of <see cref="T:System.Object" /> that contains data stored in <paramref name="members" /> and associated with <paramref name="obj" />.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="obj" /> or <paramref name="members" /> parameter is <see langword="null" />.
|
|
/// An element of <paramref name="members" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Runtime.Serialization.SerializationException">An element of <paramref name="members" /> does not represent a field.</exception>
|
|
// Token: 0x0600247B RID: 9339 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600247B")]
|
|
[Address(RVA = "0x25B9380", Offset = "0x25B8180", VA = "0x1825B9380")]
|
|
public static object[] GetObjectData(object obj, MemberInfo[] members)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Looks up the <see cref="T:System.Type" /> of the specified object in the provided <see cref="T:System.Reflection.Assembly" />.</summary>
|
|
/// <param name="assem">The assembly where you want to look up the object.</param>
|
|
/// <param name="name">The name of the object.</param>
|
|
/// <returns>The <see cref="T:System.Type" /> of the named object.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="assem" /> parameter is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
|
|
// Token: 0x0600247C RID: 9340 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600247C")]
|
|
[Address(RVA = "0x25B9DA0", Offset = "0x25B8BA0", VA = "0x1825B9DA0")]
|
|
public static Type GetTypeFromAssembly(Assembly assem, string name)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600247D RID: 9341 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600247D")]
|
|
[Address(RVA = "0x25BA7A0", Offset = "0x25B95A0", VA = "0x1825BA7A0")]
|
|
internal static Assembly LoadAssemblyFromString(string assemblyName)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600247E RID: 9342 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600247E")]
|
|
[Address(RVA = "0x25BA720", Offset = "0x25B9520", VA = "0x1825BA720")]
|
|
internal static Assembly LoadAssemblyFromStringNoThrow(string assemblyName)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0600247F RID: 9343 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600247F")]
|
|
[Address(RVA = "0x25B8D50", Offset = "0x25B7B50", VA = "0x1825B8D50")]
|
|
internal static string GetClrAssemblyName(Type type, out bool hasTypeForwardedFrom)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002480 RID: 9344 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002480")]
|
|
[Address(RVA = "0x25B92F0", Offset = "0x25B80F0", VA = "0x1825B92F0")]
|
|
internal static string GetClrTypeFullName(Type type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002481 RID: 9345 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002481")]
|
|
[Address(RVA = "0x25B8EB0", Offset = "0x25B7CB0", VA = "0x1825B8EB0")]
|
|
private static string GetClrTypeFullNameForArray(Type type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06002482 RID: 9346 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6002482")]
|
|
[Address(RVA = "0x25B9090", Offset = "0x25B7E90", VA = "0x1825B9090")]
|
|
private static string GetClrTypeFullNameForNonArrayTypes(Type type)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0400148E RID: 5262
|
|
[Token(Token = "0x400148E")]
|
|
internal static ConcurrentDictionary<MemberHolder, MemberInfo[]> m_MemberInfoTable;
|
|
|
|
// Token: 0x0400148F RID: 5263
|
|
[Token(Token = "0x400148F")]
|
|
private static bool unsafeTypeForwardersIsEnabled;
|
|
|
|
// Token: 0x04001490 RID: 5264
|
|
[Token(Token = "0x4001490")]
|
|
private static bool unsafeTypeForwardersIsEnabledInitialized;
|
|
|
|
// Token: 0x04001491 RID: 5265
|
|
[Token(Token = "0x4001491")]
|
|
private static readonly Type[] advancedTypes;
|
|
|
|
// Token: 0x04001492 RID: 5266
|
|
[Token(Token = "0x4001492")]
|
|
private static Binder s_binder;
|
|
}
|
|
}
|