예제 #1
0
        public string[] GetCompatibleMethodsInCodeBehind(CodeMemberMethod method)
        {
            ProjectDom ctx;
            IType      fullClass = GetFullClass(out ctx);

            if (fullClass == null)
            {
                return(new string[0]);
            }

            IMethod MDMeth = BindingService.CodeDomToMDDomMethod(method);

            if (MDMeth == null)
            {
                return(null);
            }

            List <IMethod> compatMeth = new List <IMethod> (BindingService.GetCompatibleMethodsInClass(ctx, fullClass, MDMeth));

            string[] names = new string[compatMeth.Count];
            for (int i = 0; i < names.Length; i++)
            {
                names[i] = compatMeth[i].Name;
            }
            return(names);
        }