CSPSolutions.Reflection 1.0.0

dotnet add package CSPSolutions.Reflection --version 1.0.0
NuGet\Install-Package CSPSolutions.Reflection -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CSPSolutions.Reflection" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSPSolutions.Reflection --version 1.0.0
#r "nuget: CSPSolutions.Reflection, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CSPSolutions.Reflection as a Cake Addin
#addin nuget:?package=CSPSolutions.Reflection&version=1.0.0

// Install CSPSolutions.Reflection as a Cake Tool
#tool nuget:?package=CSPSolutions.Reflection&version=1.0.0

README.md File for .NET NuGet Package with Reflection Manager

Introduction

This is a .NET NuGet package that provides a reflection manager for .NET applications. The package is designed to help developers easily manage and manipulate the reflection metadata of their .NET applications.

Features

The package provides the following features:

  1. Reflection Metadata Management: The package provides a set of APIs that allow developers to easily manage and manipulate the reflection metadata of their .NET applications.

  2. Reflection Metadata Analysis: The package provides a set of APIs that allow developers to analyze the reflection metadata of their .NET applications. This includes information about classes, methods, fields, properties, and events.

  3. Reflection Metadata Modification: The package provides a set of APIs that allow developers to modify the reflection metadata of their .NET applications. This includes adding new classes, methods, fields, properties, and events, as well as modifying existing ones.

Usage

To use this package in your .NET application, you can simply add it as a NuGet dependency. Once added, you can start using the reflection manager by creating an instance of the ReflectionManager class.

using ReflectionManager;

// Instantiate the reflection manager
var reflectionManager = new ReflectionManager();

Once you have an instance of the ReflectionManager class, you can start using its APIs to manage and manipulate the reflection metadata of your .NET application.

Examples

Here are some examples of how you can use the reflection manager APIs:

  1. Get all classes in an assembly:
var classes = reflectionManager.GetClasses(assembly);
  1. Get all methods in a class:
var methods = reflectionManager.GetMethods(classType);
  1. Add a new class to an assembly:
reflectionManager.AddClass(assembly, className);
  1. Add a new method to a class:
reflectionManager.AddMethod(classType, methodName);

Conclusion

This .NET NuGet package provides a powerful reflection manager for .NET applications. With its easy-to-use APIs, developers can easily manage and manipulate the reflection metadata of their .NET applications. If you have any questions or feedback, please feel free to reach out to us.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages (1)

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

Package Downloads
CSPSolutions.Patterns

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 346 7/11/2023