Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeevanjames/codebits
Useful code blocks that can included in your C# projects through NuGet
https://github.com/jeevanjames/codebits
code-bits csharp nuget utility-library
Last synced: 4 months ago
JSON representation
Useful code blocks that can included in your C# projects through NuGet
- Host: GitHub
- URL: https://github.com/jeevanjames/codebits
- Owner: JeevanJames
- License: apache-2.0
- Created: 2017-10-14T16:24:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-10T21:05:44.000Z (about 3 years ago)
- Last Synced: 2024-05-29T23:10:42.899Z (9 months ago)
- Topics: code-bits, csharp, nuget, utility-library
- Language: C#
- Homepage:
- Size: 687 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Bits
Code Bits are a set of useful code blocks that can be included in your C# projects through [NuGet](http://nuget.org/). Each code bit is a single source file that gets added to a _CodeBits_ folder in your project when you import it.Code Bits does not add assemblies to your project.
You can do a search for '[CodeBits](https://www.nuget.org/packages?q=CodeBits)' on NuGet.org to view the list of available Code Bits packages.
## General code bits
| Name | Compatibility | Description |
|------|---------------|-------------|
| *[ByteArrayHelper](https://github.com/JeevanJames/CodeBits/wiki/ByteArrayHelper)* | .NET Framework 3.5 and higher | Set of utility extensions for byte arrays. |
| *[ByteSizeFriendlyName](https://github.com/JeevanJames/CodeBits/wiki/ByteSizeFriendlyName)* | .NET Framework 3.5 and higher | Builds a friendly string representation of a specified byte size value, after converting it to the best matching unit (bytes, KB, MB, GB, etc.). |
| *[EnumIterator](https://github.com/JeevanJames/CodeBits/wiki/EnumIterator)* | .NET Framework 3.5 and higher | Provides an iterator for traversing through the values of an enum type. |
| *[IniFile](https://github.com/JeevanJames/CodeBits/wiki/IniFile)* | .NET Framework 3.5 and higher | Class to read and modify .INI files. |
| *[LibraryEvents](https://github.com/JeevanJames/CodeBits/wiki/LibraryEvents)* | .NetStandard 2.0 and higher | Provides support for class libraries to raise status events. |
| *[PasswordGenerator](https://github.com/JeevanJames/CodeBits/wiki/PasswordGenerator)* | .NET Framework 3.5 and higher | Generates a random password. |
| *[ResourceExtensions](https://github.com/JeevanJames/CodeBits/wiki/ResourceExtensions)* | .NetStandard 2.0 and higher | Extensions for loading assembly embedded resources in various formats. |
| *[SaltedHash](https://github.com/JeevanJames/CodeBits/wiki/SaltedHash)* | .NET Framework 3.5 and higher | A helper class to generate and validate salted hashes. |
| *[ShortGuid](https://github.com/JeevanJames/CodeBits/wiki/ShortGuid)* | .NetStandard 2.1 and higher | Shorter, URL-friendly and readable GUID. |## Custom collections
| Name | Description |
|------|-------------|
| *[OrderedCollection](https://github.com/JeevanJames/CodeBits/wiki/OrderedCollection)* | An automatically sorted collection that has options to allow/disallow duplicate items and optionally sort in reverse order. |
| *OrderedObservableCollection* | An automatically sorted observable collection that has options to allow/disallow duplicate items and optionally sort in reverse order. |## Windows-specific code bits
| Name | Description |
|------|-------------|
| *[WindowsServiceRunner](https://github.com/JeevanJames/CodeBits/wiki/WindowsServiceRunner)* | Helper class to execute a Windows Service project either as a Console Application or a Windows Service, depending on the project type. |