fm.Extensions.Common 9.0.0-preview.1

This is a prerelease version of fm.Extensions.Common.
There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package fm.Extensions.Common --version 9.0.0-preview.1
                    
NuGet\Install-Package fm.Extensions.Common -Version 9.0.0-preview.1
                    
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="9.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="fm.Extensions.Common" Version="9.0.0-preview.1" />
                    
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 9.0.0-preview.1
                    
#r "nuget: fm.Extensions.Common, 9.0.0-preview.1"
                    
#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.
#addin nuget:?package=fm.Extensions.Common&version=9.0.0-preview.1&prerelease
                    
Install fm.Extensions.Common as a Cake Addin
#tool nuget:?package=fm.Extensions.Common&version=9.0.0-preview.1&prerelease
                    
Install fm.Extensions.Common as a Cake Tool

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

    • No dependencies.

NuGet packages (9)

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
11.0.0 5,785 11/15/2024
10.1.0 374 7/19/2024
10.0.0 239 7/19/2024
9.0.0 634 1/17/2024
8.1.0 631 10/25/2023
8.0.1 521 10/18/2023
8.0.0 1,253 7/25/2023
7.0.0 8,098 3/4/2023
6.0.0 2,290 10/12/2022
5.1.0 1,324 3/26/2022
5.0.1 1,255 11/29/2021
5.0.0 55,458 8/11/2021
4.0.0 7,528 8/20/2020
3.1.0 6,485 4/27/2019
3.0.0 6,260 10/9/2017
2.0.0 3,895 3/2/2017
1.2.0 2,427 6/29/2016

BREAKING: Target .NET 8