Skip to content

nurzhanme/StrongPrimitives

Repository files navigation

StrongPrimitives

StrongPrimitives - NuGet NuGet Build Status

Strongly-typed c# primitives to avoid primitive obsession

What is Primitive Obsession

Primitive obsession is a code smell where primitive data types are used excessively to represent your data models. This is a common problem that can lead to poorly written code and several failures.

For example, a string could represent a name, an address, price or temperature. This can make it difficult to understand what the code is doing and can lead to bugs.

To fix this problem, you can use strongly-typed objects instead of primitive data types. This will make your code more readable and maintainable

Installation

NuGet Badge

To install StrongPrimitives, you can use the NuGet package manager in Visual Studio. Simply search for "StrongPrimitives" and click "Install".

Alternatively, you can install StrongPrimitives using the command line:

Install-Package StrongPrimitives

If you like this project please give a star and a cup of coffee =)

"Buy Me A Coffee"

About

Strongly-typed c# primitives to avoid primitive obsession

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages