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); }
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); }