roslyn:get_method_source
Retrieve C# method source code by specifying type and method name. Provides full method implementation with file location details for .NET development.
Instructions
Get the actual source code of a method by type and method name. Eliminates need for file Read.
USAGE: get_method_source(typeName="MyService", methodName="ProcessData") OUTPUT: Full method source including signature, body, location (file + line numbers), and line count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typeName | Yes | The containing type name (e.g., 'MyService', 'MyController') | |
| methodName | Yes | The method name (e.g., 'ProcessData') | |
| overloadIndex | No | Which overload to get (0-based, default: 0) |