Skip to content

Useful code blocks that can included in your C# projects through NuGet

Notifications You must be signed in to change notification settings

kouweizhong/CodeBits

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code Bits

Code Bits is a set of useful code blocks that can included in your .NET projects through NuGet. 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' on NuGet.org to view the list of available Code Bits packages.

General code bits

Name Description
ByteArrayHelper Set of utility extensions for byte arrays.
ByteSizeFriendlyName 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 Provides an iterator for traversing through the values of an enum type.
IniFile Class to read and modify .INI files.
PasswordGenerator Generates a random password.
SaltedHash A helper class to generate and validate salted hashes.

Custom collections

Name Description
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 Helper class to execute a Windows Service project either as a Console Application or a Windows Service, depending on the project type.

About

Useful code blocks that can included in your C# projects through NuGet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%