ByteDev.Reflection 2.0.0

Set of reflection related extension methods in a .NET Standard assembly.

Install-Package ByteDev.Reflection -Version 2.0.0
dotnet add package ByteDev.Reflection --version 2.0.0
<PackageReference Include="ByteDev.Reflection" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ByteDev.Reflection --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ByteDev.Reflection

Reflection related extension methods.

Installation

ByteDev.Reflection has been written as a .NET Standard 2.0 library, so you can consume it from a .NET Core or .NET Framework 4.6.1 (or greater) application.

ByteDev.Reflection is hosted as a package on nuget.org. To install from the Package Manager Console in Visual Studio run:

Install-Package ByteDev.Reflection

Further details can be found on the nuget page.

Release Notes

Releases follow semantic versioning.

Full details of the release notes can be viewed on GitHub.

Code

The repo can be cloned from git bash:

git clone https://github.com/ByteDev/ByteDev.Reflection

Usage

To use any extension methods or type simply reference the ByteDev.Reflection namespace.

Assembly extensions:

  • GetVersion
  • GetFileVersion
  • GetSubClasses
  • GetAssemblyAttribute

Object extensions:

  • GetPropertyValue<T>
  • GetPropertyValue
  • GetPropertiesAsDictionary
  • SetPropertyReadOnlyValue
  • SetPropertyValue

Type extensions:

  • HasAttribute
  • GetPropertyOrThrow
  • GetPropertiesWithAttribute
  • GetPropertiesOfType
  • GetEnumProperties
  • GetStaticPropertyOrThrow
  • GetStaticPropertyValue
  • GetConstants
  • GetConstantsValues
  • GetBaseTypes
  • GetImplementedInterfaces
  • IsInNamespace
  • IsNullable
  • IsTestClass

MemberInfo extensions:

  • HasAttribute
  • GetAttribute

Generic extensions:

  • InvokeMethod

ObjectConstruction

  • ConstructNonPublic

ByteDev.Reflection

Reflection related extension methods.

Installation

ByteDev.Reflection has been written as a .NET Standard 2.0 library, so you can consume it from a .NET Core or .NET Framework 4.6.1 (or greater) application.

ByteDev.Reflection is hosted as a package on nuget.org. To install from the Package Manager Console in Visual Studio run:

Install-Package ByteDev.Reflection

Further details can be found on the nuget page.

Release Notes

Releases follow semantic versioning.

Full details of the release notes can be viewed on GitHub.

Code

The repo can be cloned from git bash:

git clone https://github.com/ByteDev/ByteDev.Reflection

Usage

To use any extension methods or type simply reference the ByteDev.Reflection namespace.

Assembly extensions:

  • GetVersion
  • GetFileVersion
  • GetSubClasses
  • GetAssemblyAttribute

Object extensions:

  • GetPropertyValue<T>
  • GetPropertyValue
  • GetPropertiesAsDictionary
  • SetPropertyReadOnlyValue
  • SetPropertyValue

Type extensions:

  • HasAttribute
  • GetPropertyOrThrow
  • GetPropertiesWithAttribute
  • GetPropertiesOfType
  • GetEnumProperties
  • GetStaticPropertyOrThrow
  • GetStaticPropertyValue
  • GetConstants
  • GetConstantsValues
  • GetBaseTypes
  • GetImplementedInterfaces
  • IsInNamespace
  • IsNullable
  • IsTestClass

MemberInfo extensions:

  • HasAttribute
  • GetAttribute

Generic extensions:

  • InvokeMethod

ObjectConstruction

  • ConstructNonPublic

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 90 6/10/2020
1.1.0 77 5/27/2020
1.0.1 55 5/7/2020
1.0.0 52 5/7/2020