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

77 lines
5.9 KiB
C#

using System;
using System.Collections;
using System.Reflection;
using Cpp2IlInjected;
namespace System.ComponentModel.Design.Serialization
{
/// <summary>Provides the information necessary to create an instance of an object. This class cannot be inherited.</summary>
// Token: 0x020001C6 RID: 454
[Token(Token = "0x20001C6")]
public sealed class InstanceDescriptor
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.Serialization.InstanceDescriptor" /> class using the specified member information and arguments.</summary>
/// <param name="member">The member information for the descriptor. This can be a <see cref="T:System.Reflection.MethodInfo" />, <see cref="T:System.Reflection.ConstructorInfo" />, <see cref="T:System.Reflection.FieldInfo" />, or <see cref="T:System.Reflection.PropertyInfo" />. If this is a <see cref="T:System.Reflection.MethodInfo" />, <see cref="T:System.Reflection.FieldInfo" />, or <see cref="T:System.Reflection.PropertyInfo" />, it must represent a <see langword="static" /> member.</param>
/// <param name="arguments">The collection of arguments to pass to the member. This parameter can be <see langword="null" /> or an empty collection if there are no arguments. The collection can also consist of other instances of <see cref="T:System.ComponentModel.Design.Serialization.InstanceDescriptor" />.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.MethodInfo" />, <see cref="T:System.Reflection.FieldInfo" />, or <see cref="T:System.Reflection.PropertyInfo" />, and it does not represent a <see langword="static" /> member.
/// -or-
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.PropertyInfo" /> and is not readable.
/// -or-
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.MethodInfo" /> or <see cref="T:System.Reflection.ConstructorInfo" />, and the number of arguments in <paramref name="arguments" /> does not match the signature of <paramref name="member" />.
/// -or-
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.ConstructorInfo" /> and represents a <see langword="static" /> member.
/// -or-
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.FieldInfo" />, and the number of arguments in <paramref name="arguments" /> is not zero.</exception>
// Token: 0x06000C23 RID: 3107 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C23")]
[Address(RVA = "0xC59490", Offset = "0xC58490", VA = "0x180C59490")]
public InstanceDescriptor(MemberInfo member, ICollection arguments)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.Serialization.InstanceDescriptor" /> class using the specified member information, arguments, and value indicating whether the specified information completely describes the instance.</summary>
/// <param name="member">The member information for the descriptor. This can be a <see cref="T:System.Reflection.MethodInfo" />, <see cref="T:System.Reflection.ConstructorInfo" />, <see cref="T:System.Reflection.FieldInfo" />, or <see cref="T:System.Reflection.PropertyInfo" />. If this is a <see cref="T:System.Reflection.MethodInfo" />, <see cref="T:System.Reflection.FieldInfo" />, or <see cref="T:System.Reflection.PropertyInfo" />, it must represent a <see langword="static" /> member.</param>
/// <param name="arguments">The collection of arguments to pass to the member. This parameter can be <see langword="null" /> or an empty collection if there are no arguments. The collection can also consist of other instances of <see cref="T:System.ComponentModel.Design.Serialization.InstanceDescriptor" />.</param>
/// <param name="isComplete">
/// <see langword="true" /> if the specified information completely describes the instance; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.MethodInfo" />, <see cref="T:System.Reflection.FieldInfo" />, or <see cref="T:System.Reflection.PropertyInfo" />, and it does not represent a <see langword="static" /> member
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.PropertyInfo" /> and is not readable.
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.MethodInfo" /> or <see cref="T:System.Reflection.ConstructorInfo" /> and the number of arguments in <paramref name="arguments" /> does not match the signature of <paramref name="member" />.
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.ConstructorInfo" /> and represents a <see langword="static" /> member
/// <paramref name="member" /> is of type <see cref="T:System.Reflection.FieldInfo" />, and the number of arguments in <paramref name="arguments" /> is not zero.</exception>
// Token: 0x06000C24 RID: 3108 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000C24")]
[Address(RVA = "0xC58EA0", Offset = "0xC57EA0", VA = "0x180C58EA0")]
public InstanceDescriptor(MemberInfo member, ICollection arguments, bool isComplete)
{
}
/// <summary>Invokes this instance descriptor and returns the object the descriptor describes.</summary>
/// <returns>The object this instance descriptor describes.</returns>
// Token: 0x06000C25 RID: 3109 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000C25")]
[Address(RVA = "0xC58990", Offset = "0xC57990", VA = "0x180C58990")]
public object Invoke()
{
return null;
}
// Token: 0x0400064F RID: 1615
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400064F")]
private MemberInfo member;
// Token: 0x04000650 RID: 1616
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000650")]
private ICollection arguments;
// Token: 0x04000651 RID: 1617
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000651")]
private bool isComplete;
}
}