The tag `.Net attributes` describes anything related to using or creating attributes in .net source code. It is specifically meant for classes derived from the `System.Attribute` type.
.Net attributes describe the creation and usage of attribute classes in .Net program code (C#, VB.Net or otherwise). .Net attributes are derived of the System.Attribute class, and can be applied to methods
, classes
or assemblies
.
Assembly version is described using Assembly attributes:
// Set version number for the assembly.
[assembly:AssemblyVersionAttribute("4.3.2.1")]
Classes can be decorated with attributes to denote special usage:
[TestClass]
public class MyTests
{
..
}
Methods can be decorated using attributes:
[TestMethod]
public void MyFirstUnitTest() { .. }
Even parameters can be decorated using attributes.