[This is preliminary documentation and is subject to change.]
ReSharper annotations.
Types
| All Types | Classes | Enumerations |
| Name | Description | |
|---|---|---|
| AssertionConditionAttribute |
Indicates the condition parameter of the assertion method.
The method itself should be marked by AssertionMethodAttribute attribute.
The mandatory argument of the attribute is the assertion type.
| |
| AssertionConditionType |
Specifies assertion type. If the assertion method argument satisifes the condition, then the execution continues.
Otherwise, execution is assumed to be halted
| |
| AssertionMethodAttribute |
Indicates that the marked method is assertion method, i.e. it halts control flow if one of the conditions is satisfied.
To set the condition, mark one of the parameters with AssertionConditionAttribute attribute
| |
| BaseTypeRequiredAttribute |
When applied to target attribute, specifies a requirement for any type which is marked with
target attribute to implement or inherit specific type or types
| |
| CanBeNullAttribute |
Indicates that the value of marked element could be null sometimes, so the check for null is necessary before its usage
| |
| CannotApplyEqualityOperatorAttribute |
Indicates that the value of marked type (or its derivatives) cannot be compared using '==' or '!=' operators.
There is only exception to compare with null, it is permitted
| |
| ImplicitUseKindFlags | ||
| ImplicitUseTargetFlags |
Specify what is considered used implicitly when marked with MeansImplicitUseAttribute or UsedImplicitlyAttribute | |
| InvokerParameterNameAttribute |
Indicates that the function argument should be string literal and match one of the parameters of the caller function.
For example, ArgumentNullException has such parameter.
| |
| LocalizationRequiredAttribute |
Indicates that marked element should be localized or not.
| |
| MeansImplicitUseAttribute |
Should be used on attributes and causes ReSharper to not mark symbols marked with such attributes as unused (as well as by other usage inspections)
| |
| NotNullAttribute |
Indicates that the value of marked element could never be null | |
| StringFormatMethodAttribute |
Indicates that marked method builds string by format pattern and (optional) arguments.
Parameter, which contains format string, should be given in constructor.
The format string should be in Format(IFormatProvider, String, array<Object>[]()[][]) -like form
| |
| TerminatesProgramAttribute |
Indicates that the marked method unconditionally terminates control flow execution.
For example, it could unconditionally throw exception
| |
| UsedImplicitlyAttribute |
Indicates that the marked symbol is used implicitly (e.g. via reflection, in external library),
so this symbol will not be marked as unused (as well as by other usage inspections)
|