Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

46 lines
2.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Reflection
{
/// <summary>Defines the member of a type that is the default member used by <see cref="M:System.Type.InvokeMember(System.String,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object,System.Object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,System.String[])" />.</summary>
// Token: 0x0200021F RID: 543
[Token(Token = "0x200021F")]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)]
[ComVisible(true)]
[Serializable]
public sealed class DefaultMemberAttribute : Attribute
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.DefaultMemberAttribute" /> class.</summary>
/// <param name="memberName">A <see langword="String" /> containing the name of the member to invoke. This may be a constructor, method, property, or field. A suitable invocation attribute must be specified when the member is invoked. The default member of a class can be specified by passing an empty <see langword="String" /> as the name of the member.
/// The default member of a type is marked with the <see langword="DefaultMemberAttribute" /> custom attribute or marked in COM in the usual way.</param>
// Token: 0x0600140A RID: 5130 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600140A")]
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
public DefaultMemberAttribute(string memberName)
{
}
/// <summary>Gets the name from the attribute.</summary>
/// <returns>A string representing the member name.</returns>
// Token: 0x17000201 RID: 513
// (get) Token: 0x0600140B RID: 5131 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000201")]
public string MemberName
{
[Token(Token = "0x600140B")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
}
// Token: 0x04000A4B RID: 2635
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000A4B")]
private string m_memberName;
}
}