Skip to content

AV1510: Add conditions on when (not) to use "using static" #93

@bkoelman

Description

@bkoelman

Current rule:

Limit usage of fully qualified type names to prevent name clashing. For example, don't do this:

var list = new System.Collections.Generic.List();

Instead, do this:

using System.Collections.Generic;

var list = new List();

If you do need to prevent name clashing, use a using directive to assign an alias:

using Label = System.Web.UI.WebControls.Label;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions