Snippet: Attribute class

property value
IDE VS Code
Language C#
Title Attribute class
Shortcut c_Attribute
Description class derived from Attribute class

Placeholders

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

Code

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