mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* DefaultMemberAttribute.cs: Add AttributeUsage attribute for class, struct and interface. svn path=/trunk/mcs/; revision=3685
30 lines
557 B
C#
30 lines
557 B
C#
//
|
|
// System.Reflection.DefaultMemberAttribute.cs
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
//
|
|
// (C) Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
namespace System.Reflection {
|
|
|
|
[Serializable]
|
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
|
|
AttributeTargets.Interface)]
|
|
public sealed class DefaultMemberAttribute : Attribute {
|
|
string member_name;
|
|
|
|
public DefaultMemberAttribute (string member_name)
|
|
{
|
|
this.member_name = member_name;
|
|
}
|
|
|
|
public string MemberName {
|
|
get {
|
|
return member_name;
|
|
}
|
|
}
|
|
}
|
|
}
|