public CodeClass AddClass(string Name, object Position, object Bases, object ImplementedInterfaces, vsCMAccess Access)
        {
            CodeDomCodeClass res = new CodeDomCodeClass(DTE, this, Name, Bases, ImplementedInterfaces, Access);

            AddItem <CodeTypeDeclaration>(res.CodeObject, Position);

            return(res);
        }
Esempio n. 2
0
        public CodeClass AddClass(string Name, object Position, object Bases, object ImplementedInterfaces, vsCMAccess Access)
        {
            CodeDomCodeClass codeClass = new CodeDomCodeClass(DTE, this, Name, Bases, ImplementedInterfaces, Access);

            CodeObject.Members.Insert(PositionToIndex(Position), codeClass.CodeObject);

            CommitChanges();
            return(codeClass);
        }