fm.Extensions.Common
13.0.0
dotnet add package fm.Extensions.Common --version 13.0.0
NuGet\Install-Package fm.Extensions.Common -Version 13.0.0
<PackageReference Include="fm.Extensions.Common" Version="13.0.0" />
<PackageVersion Include="fm.Extensions.Common" Version="13.0.0" />
<PackageReference Include="fm.Extensions.Common" />
paket add fm.Extensions.Common --version 13.0.0
#r "nuget: fm.Extensions.Common, 13.0.0"
#:package fm.Extensions.Common@13.0.0
#addin nuget:?package=fm.Extensions.Common&version=13.0.0
#tool nuget:?package=fm.Extensions.Common&version=13.0.0
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:
ArrayExtensionsCollectionExtensionsConsoleHelperConvertibleExtensionsDictionaryExtensionsDoubleExtensionsEnumerableExtensionsExceptionExtensionsInt32ExtensionsListExtensionsNetworkCredentialExtensionsNetworkCredentialHelperObjectExtensionsSecureStringExtensionsStringBuilderExtensionsStringExtensionUriExtensions
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
NuGet packages (10)
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.Mvvm.Wpf
A consequent take on the MVVM pattern without any compromises. |
|
|
fm.Windows.Controls.Wpf
Contains various WPF controls. |
|
|
fm.Ivanti.API
A library that warps the Ivanti Neurons for ITSM / Ivanti Service Manager (ISM) API in a nice user-friendly package. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.0.0 | 151 | 11/12/2026 |
| 12.4.0 | 132 | 10/30/2026 |
| 12.3.0 | 371 | 5/25/2026 |
| 12.2.0 | 320 | 2/3/2026 |
| 12.1.0 | 336 | 11/26/2025 |
| 12.0.0 | 511 | 11/13/2025 |
| 11.2.0 | 386 | 8/9/2025 |
| 11.1.0 | 341 | 5/22/2025 |
| 11.0.0 | 39,423 | 11/15/2024 |
| 10.1.0 | 636 | 7/19/2024 |
| 10.0.0 | 1,066 | 7/19/2024 |
| 9.0.0 | 921 | 1/17/2024 |
| 8.1.0 | 805 | 10/25/2023 |
| 8.0.1 | 683 | 10/18/2023 |
| 8.0.0 | 1,889 | 7/25/2023 |
BREAKING: Target .NET 11