CodeQL library for C#
codeql/csharp-all 0.9.2-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; }

GenericAssemblyAttribute

A generic attribute with assembly kind, for example [...] on line 1 in csharp [assembly: MyAttribute<string>(0)]

GenericAttribute

A generic attribute, for example [...] on line 1 in

GenericDefaultAttribute

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

GenericModuleAttribute

A generic attribute with module kind, for example [...] on line 1 in csharp [module: MyAttribute<string>(0)]

GenericReturnAttribute

A generic attribute with return kind, for example [...] on line 1 in csharp [return: MyAttribute<object>(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; }