コード例 #1
0
        public CodeDelegate AddDelegate(string Name, object Type, object Position, vsCMAccess Access)
        {
            CodeDomCodeDelegate res = new CodeDomCodeDelegate(DTE, this, Name, Type);

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

            return(res);
        }
コード例 #2
0
        public CodeDelegate AddDelegate(string Name, object Type, object Position, vsCMAccess Access)
        {
            CodeDomCodeDelegate codeDelegate = new CodeDomCodeDelegate(DTE, this, Name, Type);

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