dotnet add package Cogs.Reflection --version 1.4.4
NuGet\Install-Package Cogs.Reflection -Version 1.4.4
<PackageReference Include="Cogs.Reflection" Version="1.4.4" />
paket add Cogs.Reflection --version 1.4.4
#r "nuget: Cogs.Reflection, 1.4.4"
// Install Cogs.Reflection as a Cake Addin #addin nuget:?package=Cogs.Reflection&version=1.4.4 // Install Cogs.Reflection as a Cake Tool #tool nuget:?package=Cogs.Reflection&version=1.4.4
This library has useful tools for when you can't be certain of some things at compile time, such as types, methods, etc. While .NET reflection is immensely powerful, it's not very quick. To address this, this library offers the following classes:
FastComparer- provides a method for comparing instances of a type that is not known at compile time
FastConstructorInfo- provides a method for invoking a constructor that is not known at compile time
FastDefault- provides a method for getting the default value of a type that is not known at compile time
FastEqualityComparer- provides methods for testing equality of and getting hash codes for instances of a type that is not known at compile time
FastMethodInfo- provides a method for invoking a method that is not known at compile time
All of the above classes use reflection to initialize utilities for types at runtime, however they create delegates to perform at much better speeds and cache instances of themselves to avoid having to perform the same reflection twice. And yes, the caching is thread-safe.
Also includes extension methods for
Type which search for implementations of events, methods, and properties. Also includes
GenericOperations which provides methods for adding, dividing, multiplying, and/or subtracting objects.
|.NET||net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows|
|.NET Core||netcoreapp3.0 netcoreapp3.1|
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Cogs.Reflection:
Cogs for active expressions.
Cogs for active queries.
Cogs for WPF. Includes general-use behaviors, controls, validation rules, and value converters. Also includes ways to leverage Windows features beyond what WPF supports out of the box (such as using enabling blur-behind and binding system commands to controls) and the inclusion of input gestures in styles.
Cogs for exceptions. Includes extension methods for fully detailing exceptions in a variety of formats.
This package is not used by any popular GitHub repositories.
We upgraded some NuGet references. We enabled NuGet symbol packages.