Linger.Reflection 2.0.0-preview.1

This is a prerelease version of Linger.Reflection.
dotnet add package Linger.Reflection --version 2.0.0-preview.1
                    
NuGet\Install-Package Linger.Reflection -Version 2.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="Linger.Reflection" Version="2.0.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Linger.Reflection" Version="2.0.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Linger.Reflection" />
                    
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 Linger.Reflection --version 2.0.0-preview.1
                    
#r "nuget: Linger.Reflection, 2.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.
#:package Linger.Reflection@2.0.0-preview.1
                    
#: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=Linger.Reflection&version=2.0.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Linger.Reflection&version=2.0.0-preview.1&prerelease
                    
Install as a Cake Tool

Linger.Reflection

Linger.Reflection contains the optional runtime metadata and expression-tree features extracted from Linger.Utils.

Upgrading from 1.x? See the 2.0 migration guide.

Installation

dotnet add package Linger.Reflection

The package references Linger.Utils; applications normally reference only Linger.Reflection when they need these APIs.

Target Frameworks

  • .NET 10.0
  • .NET 9.0
  • .NET 8.0
  • .NET Standard 2.0
  • .NET Framework 4.7.2

Included Features

  • Expression composition and predicate helpers
  • Dynamic IQueryable ordering by property name
  • Runtime property inspection and enumeration
  • Enum DescriptionAttribute and DisplayAttribute access
  • Reflection-based IEnumerable<T>.ToDataTable() conversion
  • Reflection-based DataTable.ToList<T>() conversion

Usage

using System.Data;
using System.Linq.Expressions;
using Linger.Extensions;
using Linger.Extensions.Collection;
using Linger.Extensions.Core;
using Linger.Extensions.Data;

Expression<Func<User, bool>> activeUsers = x => x.IsActive;
Expression<Func<User, bool>> adults = x => x.Age >= 18;
Expression<Func<User, bool>> filter = activeUsers.And(adults);

IQueryable<User> ordered = users.AsQueryable().CreateOrderBy(nameof(User.Name));

string? name = user.GetPropertyValue(nameof(User.Name))?.ToString();
string description = Status.Active.GetDescription();

DataTable table = users.ToDataTable();
List<User>? mappedUsers = table.ToList<User>();

AOT And Trimming

This package discovers members at runtime and is not suitable for Native AOT or trimming-sensitive paths. Use the explicit mapper and factory overloads in Linger.Utils for DataTable conversion, and write compile-time projections for other metadata-dependent operations.

Dependency Direction

Linger.Reflection depends on Linger.Utils. Linger.Utils does not depend on Linger.Reflection.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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 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 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Linger.Reflection:

Package Downloads
Linger.SharedKernel

Core domain primitives and shared components for Linger applications. Provides base search models, pagination support, and essential building blocks for implementing domain-driven design patterns across multiple projects.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.1 38 8/29/2026