DotNetExtras.Common
1.0.0
See the version list below for details.
dotnet add package DotNetExtras.Common --version 1.0.0
NuGet\Install-Package DotNetExtras.Common -Version 1.0.0
<PackageReference Include="DotNetExtras.Common" Version="1.0.0" />
<PackageVersion Include="DotNetExtras.Common" Version="1.0.0" />
<PackageReference Include="DotNetExtras.Common" />
paket add DotNetExtras.Common --version 1.0.0
#r "nuget: DotNetExtras.Common, 1.0.0"
#:package DotNetExtras.Common@1.0.0
#addin nuget:?package=DotNetExtras.Common&version=1.0.0
#tool nuget:?package=DotNetExtras.Common&version=1.0.0
DotNetExtras.Common Library
The DotNetExtras.Common
library implements general-purpose classes that can simplify common tasks in various .NET Core projects. This library assembles the set of utility functions that we kept carrying from one project to another and found most useful over decades of .NET development.
Use the DotNetExtras.Common
library to:
- Retrieve error information from exceptions, including immediate and inner exceptions.
- Perform simple JSON serialization and deserialization.
- Utilize string functions to generate tokenized strings from collections.
- Clone and compare objects deeply.
- Get and set object values using compound (nested) property names.
- Convert strings to strongly-typed data types including dates, times, and collections.
- Validate content formats such as JSON, HTML, and common patterns using built-in regular expressions.
- Access enumeration metadata like descriptions, abbreviations, and custom attributes.
- Check if objects are empty or determine type characteristics (primitive vs. complex).
- Convert objects to dynamic types and perform advanced type introspection.
- Generate fully qualified or camelCase names for variables, types, and members using the NameOf utility.
- Retrieve application assembly information including company, version, and product details.
- Escape special characters for LDAP queries and SQL statements.
- Convert collections to comma-separated strings with customizable delimiters and formatting.
- Parse delimited strings into typed collections (lists, arrays, dictionaries, hash sets).
For details, check the topics under the DotNetExtras.Common
namespace section in the API documentation. For additional usage examples, see the unit tests project.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on DotNetExtras.Common:
Package | Downloads |
---|---|
DotNetExtras.Extended
A .NET Core library implementing less frequently used general-purpose operations. |
|
DotNetExtras.OData
A .NET Core library implementing OData filter parsing and validation functions. |
|
DotNetExtras.Mail
A .NET Core library implementing mail template functionality based on the Razor syntax. |
|
DotNetExtras.Testing
A .NET Core library implementing helper functions for unit testing and validation based on xUnit. |
GitHub repositories
This package is not used by any popular GitHub repositories.