A base class for attributes that enables them to specify whether they target a collection or the members of the collection, when the attribute is added before a collection class member.
Implements the ITargetableAttribute interface.
Attribute Target
Field, property, indexer, method return value or method parameter.
Example
using System; namespace Sisus.Attributes { /// <summary> /// Attribute that specifies that its target should be drawn as a non-editable read-only field. /// </summary> [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public class ReadOnlyAttribute : TargetableAttribute { public ReadOnlyAttribute() : base() { } public ReadOnlyAttribute(Target attributeTarget) : base(attributeTarget) { } } }