CodeQL library for C#
codeql/csharp-all 0.4.0-dev (changelog, source)
Search

Module Attribute

Provides the Attribute class.

Import path

import semmle.code.csharp.Attribute

Imports

Type

Provides classes for types.

Classes

AssemblyAttribute

An attribute with assembly kind, for example [...] on line 1 in csharp [assembly: MyAttribute(0)]

Attributable

An element that can have attributes. Either an assembly (Assembly), a field (Field), a parameter (Parameter), an operator (Operator), a method (Method), a constructor (Constructor), a destructor (Destructor), a callable accessor (CallableAccessor), a value or reference type (ValueOrRefType), a declaration with accessors (DeclarationWithAccessors), a local function (LocalFunction) or a lambda expression (LambdaExp).

Attribute

An attribute, for example [...] on line 1 in

DefaultAttribute

An attribute with default kind, for example [...] on line 1 in csharp [MyAttribute(0)] int SomeMethod() { return 1; }

ModuleAttribute

An attribute with module kind, for example [...] on line 1 in csharp [module: MyAttribute(0)]

ReturnAttribute

An attribute with return kind, for example [...] on line 1 in csharp [return: MyAttribute(0)] int SomeMethod() { return 1; }