Snippet: Attribute class

property value
IDE Visual Studio
Language C#
Title Attribute class
Shortcut c_
Description class derived from Attribute class
Snippet Types Expansion
Namespaces System


Identifier Tooltip Default Value Editable Function Type Name
allowMultiple false yes
base The name of the base class Attribute yes
modifier Modifier(s) public sealed yes
name The name of the attribute My yes
target .All yes


[AttributeUsage(AttributeTargets.All, AllowMultiple = false)]
public sealed class MyAttribute : Attribute {