using System; using System.Reflection; namespace Kyoo { /// /// Static class containing MethodOf calls. /// public static class MethodOfUtils { /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Action action) { return action.Method; } /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Action action) { return action.Method; } /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Action action) { return action.Method; } /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Action action) { return action.Method; } /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Func action) { return action.Method; } /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Func action) { return action.Method; } /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Func action) { return action.Method; } /// /// Get a MethodInfo from a direct method. /// /// The method (without any arguments or return value. /// The of the given method public static MethodInfo MethodOf(Func action) { return action.Method; } } }