You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Licensed to the .NET Foundation under one or more agreements.
1
+
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
usingSystem.Runtime.CompilerServices;
5
5
6
-
#if NANOCLR_REFLECTION
7
-
8
6
namespaceSystem.Reflection
9
7
{
10
8
usingSystem;
@@ -18,17 +16,15 @@ namespace System.Reflection
18
16
[Serializable]
19
17
publicsealedclassDefaultMemberAttribute:Attribute
20
18
{
21
-
privatereadonlyString_memberName;
22
-
23
19
// You must provide the name of the member, this is required
24
20
/// <summary>
25
21
/// Initializes a new instance of the DefaultMemberAttribute class.
26
22
/// </summary>
27
23
/// <param name="memberName">A String containing the name of the member to invoke. This may be a constructor, method, property, or field.
28
24
/// 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.</param>
29
-
publicDefaultMemberAttribute(StringmemberName)
25
+
publicDefaultMemberAttribute(stringmemberName)
30
26
{
31
-
_memberName=memberName;
27
+
MemberName=memberName;
32
28
}
33
29
34
30
/// <summary>
@@ -37,11 +33,6 @@ public DefaultMemberAttribute(String memberName)
0 commit comments