using System;
using System.Runtime.InteropServices;
namespace System.Reflection
{
/// Defines the member of a type that is the default member used by .
// Token: 0x02000056 RID: 86
[ComVisible(true)]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)]
[Serializable]
public sealed class DefaultMemberAttribute : Attribute
{
/// Initializes a new instance of the class.
/// A 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 String as the name of the member.The default member of a type is marked with the DefaultMemberAttribute custom attribute or marked in COM in the usual way.
// Token: 0x06000685 RID: 1669 RVA: 0x00014C88 File Offset: 0x00012E88
public DefaultMemberAttribute(string memberName)
{
this.member_name = memberName;
}
/// Gets the name from the attribute.
/// A string representing the member name.
// Token: 0x170000C0 RID: 192
// (get) Token: 0x06000686 RID: 1670 RVA: 0x00014C98 File Offset: 0x00012E98
public string MemberName
{
get
{
return this.member_name;
}
}
// Token: 0x040000A8 RID: 168
private string member_name;
}
}