public static MemberInfo getInfo(MethodInfo method) {
     var result = method.getUserData(typeof(MethodMemberInfo));
     if (result == null) {
         result = new MethodMemberInfo(method);
         method.addUserData(result);
     }
     return result;
 }
Esempio n. 2
0
        public static MemberInfo getInfo(MethodInfo method)
        {
            var result = method.getUserData(typeof(MethodMemberInfo));

            if (result == null)
            {
                result = new MethodMemberInfo(method);
                method.addUserData(result);
            }
            return(result);
        }