System.Diagnostics.CodeAnalysis Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains classes for interaction with code analysis tools. These tools are used to analyze code for conformance to coding conventions such as naming or security rules.
Allow |
Specifies that |
Constant |
Indicates that the specified method parameter expects a constant. |
Disallow |
Specifies that |
Does |
Specifies that a method will never return under any circumstance. |
Does |
Specifies that the method will not return if the associated Boolean parameter is passed the specified value. |
Dynamically |
Indicates that certain members on a specified Type are accessed dynamically, for example, through System.Reflection. |
Dynamic |
States a dependency that one member has on another. |
Exclude |
Specifies that the attributed code should be excluded from code coverage information. |
Experimental |
Indicates that an API is experimental and it may change in the future. |
Feature |
Indicates that the specified public static Boolean read-only property guards access to the specified feature. |
Feature |
Indicates that the specified public static Boolean read-only property corresponds to the feature switch specified by name. |
Maybe |
Specifies that an output may be |
Maybe |
Specifies that when a method returns ReturnValue, the parameter may be |
Member |
Specifies that the method or property will ensure that the listed field and property members have values that aren't |
Member |
Specifies that the method or property will ensure that the listed field and property members have non-null values when returning with the specified return value condition. |
Not |
Specifies that an output is not |
Not |
Specifies that the output will be non-null if the named parameter is non-null. |
Not |
Specifies that when a method returns ReturnValue, the parameter will not be |
Requires |
Indicates that the specified member requires assembly files to be on disk. |
Requires |
Indicates that the specified method requires the ability to generate new code at runtime, for example through System.Reflection. |
Requires |
Indicates that the specified method requires dynamic access to code that is not referenced statically, for example, through System.Reflection. |
Sets |
Specifies that this constructor sets all required members for the current type, and callers do not need to set any required members themselves. |
String |
Specifies the syntax used in a string. |
Suppress |
Suppresses reporting of a specific code analysis rule violation, allowing multiple suppressions on a single code artifact. Does not apply to compiler diagnostics. |
Unconditional |
Suppresses reporting of a specific rule violation, allowing multiple suppressions on a single code artifact. |
Unscoped |
Used to indicate a byref escapes and is not scoped. |
Dynamically |
Specifies the types of members that are dynamically accessed. This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values. |
.NET feedback
.NET is an open source project. Select a link to provide feedback: