46 lines
2.1 KiB
C#
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: 0x02000218 RID: 536
|
|
[Token(Token = "0x2000218")]
|
|
[ComVisible(true)]
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)]
|
|
[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: 0x060013CC RID: 5068 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60013CC")]
|
|
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
|
public DefaultMemberAttribute(string memberName)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the name from the attribute.</summary>
|
|
/// <returns>A string representing the member name.</returns>
|
|
// Token: 0x170001F7 RID: 503
|
|
// (get) Token: 0x060013CD RID: 5069 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170001F7")]
|
|
public string MemberName
|
|
{
|
|
[Token(Token = "0x60013CD")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000A41 RID: 2625
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000A41")]
|
|
private string m_memberName;
|
|
}
|
|
}
|