Name
attributeThe Name
attribute is used to specify the property name that underlies an indexer in NGWS. If no Name
attribute is specified, then the property is named Item
.
[AttributeUsage(AttributeTargets.Indexer)] public class NameAttribute: System.Attribute { public NameAttribute(string value) {…} public string Value { get {…} } }
The identifier must be a legal C# identifier. Otherwise, a compile-time error occurs.