SA1209: UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives

StyleCop

TypeName

UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives

CheckId

SA1209

Category

Ordering Rules

Cause

A using-alias directive is positioned before a regular using directive.

Rule Description

A violation of this rule occurs when a using-alias directive is placed before a normal using directive. Using-alias directives have special behavior which can alter the meaning of the rest of the code within the file or namespace. Placing the using-alias directives together below all other using-directives can make the code cleaner and easier to read, and can help make it easier to identify the types used throughout the code.

How to Fix Violations

To fix an instance of this violation, place all using-alias directives beneath all normal using directives.