fm.Extensions.Common 13.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package fm.Extensions.Common --version 13.1.0
                    
NuGet\Install-Package fm.Extensions.Common -Version 13.1.0
                    
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="fm.Extensions.Common" Version="13.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="fm.Extensions.Common" Version="13.1.0" />
                    
Directory.Packages.props
<PackageReference Include="fm.Extensions.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 fm.Extensions.Common --version 13.1.0
                    
#r "nuget: fm.Extensions.Common, 13.1.0"
                    
#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 fm.Extensions.Common@13.1.0
                    
#: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=fm.Extensions.Common&version=13.1.0
                    
Install as a Cake Addin
#tool nuget:?package=fm.Extensions.Common&version=13.1.0
                    
Install as a Cake Tool

About

A collection of useful extension methods.

Examples

ObjectExtensions

Configure

Configure any kind of object in a fluent way.

var client = services.GetRequiredService<HttpClient>().Configure(c => c.BaseAddress = new Uri("https://localhost"));

Transform

Transform an existing object into a new one. This is very useful when the expression before the transformation is very large and you want to operate on it without assigning a local variable.

new {
    Id = 1,
    Name = "fm",
}.Transform(o => JsonSerializer.Serialize(o)).ShouldBe("""{"Id":1,"Name":"fm"}""");

Main Types

The main types provided by this library are:

  • ArrayExtensions
  • CollectionExtensions
  • ConsoleHelper
  • ConvertibleExtensions
  • DictionaryExtensions
  • DoubleExtensions
  • EnumerableExtensions
  • ExceptionExtensions
  • Int32Extensions
  • ListExtensions
  • NetworkCredentialExtensions
  • NetworkCredentialHelper
  • ObjectExtensions
  • SecureStringExtensions
  • StringBuilderExtensions
  • StringExtension
  • UriExtensions
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net11.0

    • No dependencies.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on fm.Extensions.Common:

Package Downloads
fm.EntityFrameworkCore.Relational

Extends Microsoft.EntityFrameworkCore.Relational with some raw SQL methods. Directly invoke ExecuteScalar/ExecuteReader on DbContext. Bulk update and delete rows.

fm.Extensions.Wpf

A collection of extensions for typical WPF scenarios, like Boxes, Value Converters, Template Selectors and other helpful extensions.

fm.Extensions.HttpClient

Extensions for HttpClient. Provides convenient methods like GetVerified, PostAsJsonVerified, PostAsJsonWithResult and more which take care of error handling for you.

fm.Mvvm.Wpf

A consequent take on the MVVM pattern without any compromises.

fm.Windows.Controls.Wpf

Contains various WPF controls.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.1.1 0 11/25/2026
13.1.0 0 11/25/2026
13.0.0 180 11/12/2026
12.4.0 139 10/30/2026
12.3.0 377 5/25/2026
12.2.0 322 2/3/2026
12.1.0 338 11/26/2025
12.0.0 514 11/13/2025
11.2.0 389 8/9/2025
11.1.0 345 5/22/2025
11.0.0 39,856 11/15/2024
10.1.0 639 7/19/2024
10.0.0 1,072 7/19/2024
9.0.0 925 1/17/2024
8.1.0 808 10/25/2023
8.0.1 686 10/18/2023
Loading failed

Mark ExceptionExtensions.ToStringRecursive as obsolete