コード例 #1
0
        public static void WalkInterface(EnvDTE.CodeInterface ifac, string indent)
        {
            doInterface(ifac, indent);
            foreach (EnvDTE.CodeElement codeElem in ifac.Bases)
            {
                doInheritsFrom(codeElem, indent);
            }
            foreach (EnvDTE.CodeElement codeElem in ifac.Members)
            {
                switch (codeElem.Kind)
                {
                // no EnvDTE.vsCMElement.vsCMElementVariable case for interface
                case EnvDTE.vsCMElement.vsCMElementProperty:
                    doCodeProperty((CodeProperty)codeElem, indent);
                    break;

                case EnvDTE.vsCMElement.vsCMElementFunction:
                    WalkFunction((CodeFunction)codeElem, indent + "...");
                    break;

                default:
                    doCodeElement(codeElem, indent);
                    break;
                }
            }
        }
コード例 #2
0
 public static void doInterface(EnvDTE.CodeInterface ifac, string indent)
 {
     Debug.WriteLine(indent + "interface:" + ifac.Name);
 }