Skip to content

Do not put extension methods into the System namespaces #21

@sandrock

Description

@sandrock

Invading the System namespaces should not continue. But what namespace should we use?


Use a prefix notation like this?

  • System -> SrkToolkit.System
  • System.Collections -> SrkToolkit.System.Collections
  • ...

(-) This may lead to a lot of new using statements.
(+) Fine-grained choice of extensions to use


Or use a single namespace? SrkToolkit.Extensions?

(-) This may lead to a binary choice of using all referenced toolkits or none.
(+) Binary-grained choice of extensions to use


Or put extensions in each nuget's namespace? SrkToolkit.Common, SrkToolkit.Web...

(+) Coarse-grained choice of extensions to use
(+) This may lead to an acceptable quantity of new using statements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions