Class AccessedThroughPropertyAttribute
- Namespace
- System.Runtime.CompilerServices
- Assembly
- mscorlib.dll
Specifies the name of the property that accesses the attributed field.
[AttributeUsage(AttributeTargets.Field)]
public sealed class AccessedThroughPropertyAttribute : Attribute
- Inheritance
-
AccessedThroughPropertyAttribute
- Inherited Members
- Extension Methods
Constructors
AccessedThroughPropertyAttribute(string)
Initializes a new instance of the AccessedThroughPropertyAttribute class with the name of the property used to access the attributed field.
public AccessedThroughPropertyAttribute(string propertyName)
Parameters
propertyName
stringThe name of the property used to access the attributed field.
Properties
PropertyName
Gets the name of the property used to access the attributed field.
public string PropertyName { get; }
Property Value
- string
The name of the property used to access the attributed field.