Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.74 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.74 KB

NuGet NuGet publish Ardalis.Extensions to nuget

Ardalis.Extensions

Some random C# extension methods I've found useful. Published as Ardalis.Extensions on Nuget.

Conventions

  • Extension methods are grouped into folders based on similar purpose.
  • Folder nesting should match class namespaces.
    • Ardalis.Extensions.Parsing
    • Ardalis.Extensions.Encoding.Base64
  • One extension method class per folder.
  • Extension methods classes should have an Extensions suffix.
  • Classes should be made partial.
  • One extension method per file.
  • Overloads should be placed in the same file.
  • File names should be the contained extension method's name.
  • Tests should be provided for each extension method and overload.
  • Test classes should have a Tests suffix.

Roadmap

For now as I gather different useful extensions there is a single Ardalis.Extensions package available on NuGet. Once there are more than a few, I will most likely break up the extensions into separate individual NuGet packages (for example: Ardalis.StringExtensions? Ardalis.Extensions.Strings?) and then the original Ardalis.Extensions would become a meta-package that would pull in all of the separate smaller packages.