DotNetExtras.Common
1.0.2
dotnet add package DotNetExtras.Common --version 1.0.2
NuGet\Install-Package DotNetExtras.Common -Version 1.0.2
<PackageReference Include="DotNetExtras.Common" Version="1.0.2" />
<PackageVersion Include="DotNetExtras.Common" Version="1.0.2" />
<PackageReference Include="DotNetExtras.Common" />
paket add DotNetExtras.Common --version 1.0.2
#r "nuget: DotNetExtras.Common, 1.0.2"
#:package DotNetExtras.Common@1.0.2
#addin nuget:?package=DotNetExtras.Common&version=1.0.2
#tool nuget:?package=DotNetExtras.Common&version=1.0.2
DotNetExtras.Common
DotNetExtras.Common
is a general-purpose .NET Core library that simplifies common operations frequently used in .NET applications.
Use the DotNetExtras.Common
library to:
- Generate fully qualified names for types, variables, and object properties (think of the
nameof
operator on steroids). - Retrieve application assembly information including company, version, and product details.
- Retrieve error information from exceptions, including immediate and inner exceptions.
- Serialize objects as JSON strings and deserialize JSON strings into objects with an option to mask or ignore specific properties.
- Convert collections to comma-separated (or tokenized) string.
- Compare complex object for equivalence (property by property).
- Deep clone complex objects (including all nested properties).
- Get and set object values using compound (nested) property names (create property hierarchy if necessary).
- 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.
- Escape special characters for LDAP queries and SQL statements.
Documentation
For complete documentation, usage details, and code samples, see:
Package
Install the latest version of the DotNetExtras.Common
NuGet package from:
See also
Check out other DotNetExtras
libraries at:
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 (3)
Showing the top 3 NuGet packages that depend on DotNetExtras.Common:
Package | Downloads |
---|---|
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. |
|
DotNetExtras.OData
A .NET Core library implementing OData filter parsing and validation functions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Added options to mask JSON properties during serialization.