You've already forked linux-packaging-mono
Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
42
external/referencesource/mscorlib/system/reflection/defaultmemberattribute.cs
vendored
Normal file
42
external/referencesource/mscorlib/system/reflection/defaultmemberattribute.cs
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
// ==++==
|
||||
//
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//
|
||||
// ==--==
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DefaultMemberAttribute is defines the Member of a Type that is the "default"
|
||||
//
|
||||
// <OWNER>[....]</OWNER>
|
||||
// member used by Type.InvokeMember. The default member is simply a name given
|
||||
// to a type.
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
namespace System.Reflection {
|
||||
|
||||
using System;
|
||||
|
||||
[Serializable]
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface)]
|
||||
[System.Runtime.InteropServices.ComVisible(true)]
|
||||
public sealed class DefaultMemberAttribute : Attribute
|
||||
{
|
||||
// The name of the member
|
||||
private String m_memberName;
|
||||
|
||||
// You must provide the name of the member, this is required
|
||||
public DefaultMemberAttribute(String memberName) {
|
||||
m_memberName = memberName;
|
||||
}
|
||||
|
||||
// A get accessor to return the name from the attribute.
|
||||
// NOTE: There is no setter because the name must be provided
|
||||
// to the constructor. The name is not optional.
|
||||
public String MemberName {
|
||||
get {return m_memberName;}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user