Пример #1
0
        private static IEnumerable <MethodData> GetBaseAndImplementedMethodsForMethod(MethodData method)
        {
            var bases      = Inheritance.GetBaseMethods(method);
            var implements = Inheritance.GetImplementedMethods(method);

            return(Enumerable.Concat(bases, implements));
        }
Пример #2
0
        public static IEnumerable <MethodData> GetBaseAndImplementedMethods(MethodData method)
        {
            if (!(method.Inner is MethodInfo)) // constructor
            {
                return(Enumerable.Empty <MethodData>());
            }

            return(Inheritance.GetBaseAndImplementedMethodsForMethod(method));
        }