Return the method signature as a string.
- Namespace
- Statiq.Core
- Containing Type
- ReflectionHelper
Syntax
public static string GetMethodSignature(MethodInfo method, bool callable = false, bool convertExtensionsToInstance = false)
Parameters
| Name |
Type |
Description |
| method |
MethodInfo |
The Method.
|
| callable |
bool |
Return as an callable string(public void a(string b) would return a(b)).
|
| convertExtensionsToInstance |
bool |
Converts extension methods to an instance signature as if they were defined on the extended class.
|
Return Value
| Type |
Description |
| string |
Method signature.
|