CSPSolutions.Reflection
1.0.0
dotnet add package CSPSolutions.Reflection --version 1.0.0
NuGet\Install-Package CSPSolutions.Reflection -Version 1.0.0
<PackageReference Include="CSPSolutions.Reflection" Version="1.0.0" />
paket add CSPSolutions.Reflection --version 1.0.0
#r "nuget: CSPSolutions.Reflection, 1.0.0"
// 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:
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.
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.
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:
- Get all classes in an assembly:
var classes = reflectionManager.GetClasses(assembly);
- Get all methods in a class:
var methods = reflectionManager.GetMethods(classType);
- Add a new class to an assembly:
reflectionManager.AddClass(assembly, className);
- 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 | Versions 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. |
-
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 |