System.Reflection.DefaultMemberAttribute.MemberName Property

Gets the name from the attribute.

Syntax

public string MemberName { get; }

Value

A string representing the member name contained by the current instance.

Remarks

There is no set accessor because the name must be provided to the constructor. The name is not optional.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0