DotNetExtras.Common 1.0.2

dotnet add package DotNetExtras.Common --version 1.0.2
                    
NuGet\Install-Package DotNetExtras.Common -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetExtras.Common" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetExtras.Common" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="DotNetExtras.Common" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DotNetExtras.Common --version 1.0.2
                    
#r "nuget: DotNetExtras.Common, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DotNetExtras.Common@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DotNetExtras.Common&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=DotNetExtras.Common&version=1.0.2
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last Updated
1.0.2 0 8/25/2025
1.0.0 86 8/11/2025

Added options to mask JSON properties during serialization.