Пример #1
0
        public CodeStruct AddStruct(string Name, object Position, object Bases, object ImplementedInterfaces, vsCMAccess Access)
        {
            CodeDomCodeStruct ce = new CodeDomCodeStruct(DTE, this, Name, Bases, ImplementedInterfaces, Access);

            AddItem <CodeTypeDeclaration>(ce.CodeObject, Position);
            return(ce);
        }
Пример #2
0
        public CodeStruct AddStruct(string Name, object Position, object Bases, object ImplementedInterfaces, vsCMAccess Access)
        {
            CodeDomCodeStruct codeStruct = new CodeDomCodeStruct(DTE, this, Name, Bases, ImplementedInterfaces, Access);

            CodeObject.Members.Insert(PositionToIndex(Position), codeStruct.CodeObject);
            CommitChanges();
            return(codeStruct);
        }