ImmediateReflection 1.4.0

.NET library that aims to provide a faster usage of C# reflection features.
Especially the usage of constructors, members accessors (get/set) and attributes.

It provides these features while trying to keep an API as similar as the standard Reflection API.

Supported platforms:
- .NET Standard 2.0+
- .NET Core 2.0+
- .NET Framework 2.0+

Supports Source Link

See benchmarks here:

There is a newer version of this package available.
See the version list below for details.
Install-Package ImmediateReflection -Version 1.4.0
dotnet add package ImmediateReflection --version 1.4.0
<PackageReference Include="ImmediateReflection" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImmediateReflection --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

➟ Release 1.4.0
- Add an access to the Declaring Type directly through ImmediateType, ImmediateProperty and ImmediateField.
- Add an access to the Base Type directly through ImmediateType.
- Add CopyConstructorDelegate delegate.
- Add the possibility to call Copy constructor in a faster way than Activator from ImmediateType.
- Add a type extension to check if a type has a default constructor.
- Add type extensions to check if a type has a copy constructor and to directly call it.
- Add object extensions to check if an instance can be copied by a copy constructor and to directly call it.

- Globally optimize the library by reducing the number of redundant null checks.
- Slightly optimize the branching in generated code.

  • .NETFramework 2.0

    • No dependencies.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.4.1 889 9/2/2019
1.4.0 43 9/1/2019
1.3.0 1,239 7/23/2019
1.2.0 63 7/18/2019
1.1.0 67 6/24/2019
1.0.0 79 5/31/2019
0.1.0 81 5/13/2019