nightmaregaurav.methodsignature
1.0.1
Use https://learn.microsoft.com/en-us/dotnet/api/System.Reflection.Metadata.MethodSignature-1 instead
See the version list below for details.
dotnet add package nightmaregaurav.methodsignature --version 1.0.1
NuGet\Install-Package nightmaregaurav.methodsignature -Version 1.0.1
<PackageReference Include="nightmaregaurav.methodsignature" Version="1.0.1" />
paket add nightmaregaurav.methodsignature --version 1.0.1
#r "nuget: nightmaregaurav.methodsignature, 1.0.1"
// Install nightmaregaurav.methodsignature as a Cake Addin #addin nuget:?package=nightmaregaurav.methodsignature&version=1.0.1 // Install nightmaregaurav.methodsignature as a Cake Tool #tool nuget:?package=nightmaregaurav.methodsignature&version=1.0.1
MethodSignature - Simplified Method Signature Retrieval
MethodSignature is a C# library that provides a simple and convenient way to extract the signature information of methods from a given class. It can be used to retrieve details about method visibility, static status, parameter types, and return type.
Features
- Retrieve method signature information effortlessly.
- Supports methods with various access modifiers and parameters.
- Works with both static and instance methods.
Use Cases
- API Documentation Generation.
- Code Analysis and Inspection Tools.
Getting Started
To get started with MethodSignature, follow these simple steps:
- Install the MethodSignature package from NuGet.
- Import the MethodSignature namespace in your C# file.
using MethodSignature;
- Retrieve method signature information using the
SignatureOf
method.Type classType = typeof(YourClass); string methodName = "YourMethodName"; var methodSignature = MethodSignature.SignatureOf(classType, methodName);
- Access the properties of the
MethodSignature
object to get the required details.Console.WriteLine(methodSignature.ToString());
Contributions and Issues
MethodSignature is free and open-source. Contributions are highly appreciated. If you find any issues or have suggestions to improve the library, feel free to submit a pull request or create an issue in the GitHub repository.
License
MethodSignature is released under the MIT License. You can find the full license details in the LICENSE file.
This library was made with ❤️ by NightmareGaurav.
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
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.