fm.Extensions.Common
7.1.0-preview.2
See the version list below for details.
dotnet add package fm.Extensions.Common --version 7.1.0-preview.2
NuGet\Install-Package fm.Extensions.Common -Version 7.1.0-preview.2
<PackageReference Include="fm.Extensions.Common" Version="7.1.0-preview.2" />
paket add fm.Extensions.Common --version 7.1.0-preview.2
#r "nuget: fm.Extensions.Common, 7.1.0-preview.2"
// Install fm.Extensions.Common as a Cake Addin
#addin nuget:?package=fm.Extensions.Common&version=7.1.0-preview.2&prerelease
// Install fm.Extensions.Common as a Cake Tool
#tool nuget:?package=fm.Extensions.Common&version=7.1.0-preview.2&prerelease
Description
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"}""");
Commonly Used Types
ArrayExtensions
CollectionExtensions
ConvertibleExtensions
DictionaryExtensions
DoubleExtensions
EnumExtensions
EnumerableExtensions
ExceptionExtensions
Int32Extensions
ListExtensions
ObjectExtensions
StringBuilderExtensions
StringExtension
UriExtensions
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.0
- No dependencies.
NuGet packages (8)
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.ivanti.API
A library that warps the Ivanti Service Manager (ISM) API in a nice user-friendly package. |
|
fm.Extensions.Logging.Testing.MSTest
Logs and reports log messages that have not been handled during UnitTests. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 395 | 1/17/2024 |
8.1.0 | 559 | 10/25/2023 |
8.0.1 | 469 | 10/18/2023 |
8.0.0 | 947 | 7/25/2023 |
7.0.0 | 7,151 | 3/4/2023 |
6.0.0 | 1,793 | 10/12/2022 |
5.1.0 | 1,222 | 3/26/2022 |
5.0.1 | 1,176 | 11/29/2021 |
5.0.0 | 35,477 | 8/11/2021 |
4.0.0 | 6,961 | 8/20/2020 |
3.1.0 | 5,964 | 4/27/2019 |
3.0.0 | 5,720 | 10/9/2017 |
2.0.0 | 3,510 | 3/2/2017 |
1.2.0 | 2,204 | 6/29/2016 |
Added ObjectExtensions.Configure()
Added ObjectExtensions.Transform()