示例#1
0
 /// <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));
 }
示例#2
0
 /// <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);
 }
示例#3
0
        /// <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)));
        }
示例#4
0
        /// <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));
        }