/// <summary> /// Gets the string method. /// </summary> private static KeyValuePair <MethodInfo, VisitMethodDelegate> GetStringMethod(string name, Type[] argTypes = null, VisitMethodDelegate del = null) { return(GetMethod(typeof(string), name, argTypes, del)); }
/// <summary> /// Gets the string method. /// </summary> private static KeyValuePair<MethodInfo, VisitMethodDelegate> GetStringMethod(string name, Type[] argTypes = null, VisitMethodDelegate del = null) { return GetMethod(typeof(string), name, argTypes, del); }
/// <summary> /// Gets the method. /// </summary> private static KeyValuePair <MethodInfo, VisitMethodDelegate> GetMethod(Type type, string name, Type[] argTypes = null, VisitMethodDelegate del = null) { var method = argTypes == null?type.GetMethod(name) : type.GetMethod(name, argTypes); return(new KeyValuePair <MethodInfo, VisitMethodDelegate>(method, del ?? GetFunc(name))); }
/// <summary> /// Gets the method. /// </summary> private static KeyValuePair<MethodInfo, VisitMethodDelegate> GetMethod(Type type, string name, Type[] argTypes = null, VisitMethodDelegate del = null) { var method = argTypes == null ? type.GetMethod(name) : type.GetMethod(name, argTypes); return new KeyValuePair<MethodInfo, VisitMethodDelegate>(method, del ?? GetFunc(name)); }