Jcd.Reflection
1.0.40
Prefix Reserved
.NET Standard 2.0
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);
Product | Versions |
---|---|
.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 |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Jcd.Validations (>= 1.1.7)
- Microsoft.CSharp (>= 4.7.0)
-
.NETStandard 2.1
- Jcd.Validations (>= 1.1.7)
- Microsoft.CSharp (>= 4.7.0)
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.
Added generic GetCustomAttributes extensions for all supported types.