MethodInfoExtensions

Various extensions for MethodInfo.

namespace Sirenix.Utilities
{
[ExtensionAttribute]
public static class MethodInfoExtensions
}

Requirements

Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Extension Methods

Return Type Definition Description
MethodInfo DeAliasMethod(this MethodInfo, bool) Returns the original, backing method of an alias method if the method is an alias.
string GetFullName(this MethodBase) Returns the specified method's full name.
string GetFullName(this MethodBase, string) Returns the specified method's full name "methodName(argType1 arg1, argType2 arg2, etc)" Uses the specified gauntlet to replaces type names, ex: "int" instead of "Int32"
string GetParamsNames(this MethodBase) Returns a string representing the passed method parameters names. Ex "int num, float damage, Transform target"
bool IsAliasMethod(this MethodInfo) Determines whether the specified method is an alias.
bool IsExtensionMethod(this MethodBase) Tests if a method is an extension method.