C#-CSharpNoRefAndOutParameters¶
Parameters with modifiers ref and out should not be used
Required inputs: CSharpAST
ref
or out) in public or protected methods of public types.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
out_parameter |
Parameter definition in publicly accessible methods should not use the “out” modifier. |
None |
False |
ref_parameter |
Parameter definition in publicly accessible methods should not use the “ref” modifier. |
None |
False |
Options¶
This rule shares the following common options: excludes, includes, justification_checker, post_processing, provider, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
exclude_name_prefixes¶
exclude_name_prefixes : set[str] = {'Try'}