Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Runtime/Serialization/FormatterServices.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02000456 RID: 1110
[Token(Token = "0x2000456")]
[ComVisible(true)]
public static class FormatterServices
{
// Token: 0x0600267C RID: 9852 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600267C")]
[Address(RVA = "0x2CA3B40", Offset = "0x2CA2B40", VA = "0x182CA3B40")]
private static MemberInfo[] GetSerializableMembers(RuntimeType type)
{
return null;
}
// Token: 0x0600267D RID: 9853 RVA: 0x00017AD8 File Offset: 0x00015CD8
[Token(Token = "0x600267D")]
[Address(RVA = "0x2CA2E90", Offset = "0x2CA1E90", VA = "0x182CA2E90")]
private static bool CheckSerializable(RuntimeType type)
{
return default(bool);
}
// Token: 0x0600267E RID: 9854 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600267E")]
[Address(RVA = "0x2CA4170", Offset = "0x2CA3170", VA = "0x182CA4170")]
private static MemberInfo[] InternalGetSerializableMembers(RuntimeType type)
{
return null;
}
// Token: 0x0600267F RID: 9855 RVA: 0x00017AF0 File Offset: 0x00015CF0
[Token(Token = "0x600267F")]
[Address(RVA = "0x2CA3820", Offset = "0x2CA2820", VA = "0x182CA3820")]
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: 0x06002680 RID: 9856 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002680")]
[Address(RVA = "0x2CA3CE0", Offset = "0x2CA2CE0", VA = "0x182CA3CE0")]
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: 0x06002681 RID: 9857 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002681")]
[Address(RVA = "0x2CA3FC0", Offset = "0x2CA2FC0", VA = "0x182CA3FC0")]
public static object GetUninitializedObject(Type type)
{
return null;
}
// Token: 0x06002682 RID: 9858 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002682")]
[Address(RVA = "0x2CA5050", Offset = "0x2CA4050", VA = "0x182CA5050")]
private static object nativeGetUninitializedObject(RuntimeType type)
{
return null;
}
// Token: 0x06002683 RID: 9859 RVA: 0x00017B08 File Offset: 0x00015D08
[Token(Token = "0x6002683")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
private static bool GetEnableUnsafeTypeForwarders()
{
return default(bool);
}
// Token: 0x06002684 RID: 9860 RVA: 0x00017B20 File Offset: 0x00015D20
[Token(Token = "0x6002684")]
[Address(RVA = "0x2CA4E20", Offset = "0x2CA3E20", VA = "0x182CA4E20")]
internal static bool UnsafeTypeForwardersIsEnabled()
{
return default(bool);
}
// Token: 0x06002685 RID: 9861 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002685")]
[Address(RVA = "0x2CA4C30", Offset = "0x2CA3C30", VA = "0x182CA4C30")]
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: 0x06002686 RID: 9862 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002686")]
[Address(RVA = "0x2CA4920", Offset = "0x2CA3920", VA = "0x182CA4920")]
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: 0x06002687 RID: 9863 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002687")]
[Address(RVA = "0x2CA34F0", Offset = "0x2CA24F0", VA = "0x182CA34F0")]
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: 0x06002688 RID: 9864 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002688")]
[Address(RVA = "0x2CA3F10", Offset = "0x2CA2F10", VA = "0x182CA3F10")]
public static Type GetTypeFromAssembly(Assembly assem, string name)
{
return null;
}
// Token: 0x06002689 RID: 9865 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002689")]
[Address(RVA = "0x2CA4910", Offset = "0x2CA3910", VA = "0x182CA4910")]
internal static Assembly LoadAssemblyFromString(string assemblyName)
{
return null;
}
// Token: 0x0600268A RID: 9866 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600268A")]
[Address(RVA = "0x2CA4890", Offset = "0x2CA3890", VA = "0x182CA4890")]
internal static Assembly LoadAssemblyFromStringNoThrow(string assemblyName)
{
return null;
}
// Token: 0x0600268B RID: 9867 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600268B")]
[Address(RVA = "0x2CA2EC0", Offset = "0x2CA1EC0", VA = "0x182CA2EC0")]
internal static string GetClrAssemblyName(Type type, out bool hasTypeForwardedFrom)
{
return null;
}
// Token: 0x0600268C RID: 9868 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600268C")]
[Address(RVA = "0x2CA3460", Offset = "0x2CA2460", VA = "0x182CA3460")]
internal static string GetClrTypeFullName(Type type)
{
return null;
}
// Token: 0x0600268D RID: 9869 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600268D")]
[Address(RVA = "0x2CA3020", Offset = "0x2CA2020", VA = "0x182CA3020")]
private static string GetClrTypeFullNameForArray(Type type)
{
return null;
}
// Token: 0x0600268E RID: 9870 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600268E")]
[Address(RVA = "0x2CA3200", Offset = "0x2CA2200", VA = "0x182CA3200")]
private static string GetClrTypeFullNameForNonArrayTypes(Type type)
{
return null;
}
// Token: 0x04001551 RID: 5457
[Token(Token = "0x4001551")]
internal static ConcurrentDictionary<MemberHolder, MemberInfo[]> m_MemberInfoTable;
// Token: 0x04001552 RID: 5458
[Token(Token = "0x4001552")]
private static bool unsafeTypeForwardersIsEnabled;
// Token: 0x04001553 RID: 5459
[Token(Token = "0x4001553")]
private static bool unsafeTypeForwardersIsEnabledInitialized;
// Token: 0x04001554 RID: 5460
[Token(Token = "0x4001554")]
private static readonly Type[] advancedTypes;
// Token: 0x04001555 RID: 5461
[Token(Token = "0x4001555")]
private static Binder s_binder;
}
}