Jcd.Reflection 1.0.40 Prefix Reserved

Install-Package Jcd.Reflection -Version 1.0.40
dotnet add package Jcd.Reflection --version 1.0.40
<PackageReference Include="Jcd.Reflection" Version="1.0.40" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jcd.Reflection --version 1.0.40
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Jcd.Reflection, 1.0.40"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Jcd.Reflection as a Cake Addin
#addin nuget:?package=Jcd.Reflection&version=1.0.40

// Install Jcd.Reflection as a Cake Tool
#tool nuget:?package=Jcd.Reflection&version=1.0.40
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Jcd.Reflection

A set of reflection helpers

Examples

    internal static class Program
    {
        private static void Main()
        {
            var c = new TestClass();
            // set the private field, _field
            c.SetValue("_field",10);

            // now get its value.
            var val = (int)c.GetValue("_field");
            Console.WriteLine(val);
            
            // Now set a private property with a backing field.
            c.SetValue("PrivateProperty",20);
            
            // Now call a private helper method that returns the value from the backing field. 
            val = c.Invoke<int>("InternalGetField");
            Console.WriteLine(val);

GitHub Build status CodeFactor Grade

MyGet Nuget

API Docs

NuGet packages (1)

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

Package Downloads
Jcd.Formatting

A library to simplify implementing IFormatProvider and ICustomFormatter as well as arbitrary integer encoding (e.g. Base 31 is you please)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.40 110 10/14/2021
1.0.39 137 10/12/2021
1.0.38 142 10/11/2021
1.0.33 140 10/11/2021

Added generic GetCustomAttributes extensions for all supported types.