IEnumerable<MethodDescription> FindStaticMethods( string methodName )
IEnumerable<MethodDescription> FindStaticMethods( string methodName )

robot_2Generated
code_blocksInput

Description

The FindStaticMethods method in the Sandbox.Internal.TypeLibrary class is used to retrieve a collection of static methods that match a specified name. This method is useful for dynamically discovering and working with static methods within the Sandbox environment.

Usage

To use the FindStaticMethods method, you need to provide the name of the method you are searching for as a string. The method will return an IEnumerable<MethodDescription> containing descriptions of all static methods that match the given name.

Example usage:

var staticMethods = typeLibraryInstance.FindStaticMethods("MethodName");
foreach (var method in staticMethods)
{
    // Process each method description
}

Example

// Example of using FindStaticMethods
var typeLibrary = new Sandbox.Internal.TypeLibrary();
var staticMethods = typeLibrary.FindStaticMethods("ExampleMethod");

foreach (var method in staticMethods)
{
    // Output method details
    Console.WriteLine($"Method Name: {method.Name}");
    Console.WriteLine($"Return Type: {method.ReturnType}");
    // Additional processing...
}