CodeBits.ByteArrayHelper

Set of utility extension methods for byte arrays. Includes general methods for equality checks, null/empty checks, etc. as well as methods to find and manipulate byte sequences. See the project site for documentation.


Keywords
CodeBits, array, bits, blocks, byte, code, extension-methods, extensions, helper, utility, code-bits, csharp, nuget, utility-library
License
Apache-2.0
Install
Install-Package CodeBits.ByteArrayHelper -Version 2.0.0

Documentation

Code Bits

Code Bits are a set of useful code blocks that can be included in your C# 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 Compatibility Description
ByteArrayHelper .NET Framework 3.5 and higher Set of utility extensions for byte arrays.
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 .NET Framework 3.5 and higher Provides an iterator for traversing through the values of an enum type.
IniFile .NET Framework 3.5 and higher Class to read and modify .INI files.
LibraryEvents .NetStandard 2.0 and higher Provides support for class libraries to raise status events.
PasswordGenerator .NET Framework 3.5 and higher Generates a random password.
ResourceExtensions .NetStandard 2.0 and higher Extensions for loading assembly embedded resources in various formats.
SaltedHash .NET Framework 3.5 and higher A helper class to generate and validate salted hashes.
ShortGuid .NetStandard 2.1 and higher Shorter, URL-friendly and readable GUID.

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.