0

I want to create 2 delegates with the same name but different parameters (overloaded delegate). When I try to add a delegate I get an error on the second try due to a delegate already existing. I tried to add it first with a temp name then add the parameters and then change the name so the signuature would be different but I still get an error stating that an item already exists with that name.

How can I add an overloaded delegate?

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Dustin Davis
  • 14,482
  • 13
  • 63
  • 119

1 Answers1

0

The capabilities of the code model to generate code are limited. You can try the to use EditPoint.Insert(...) to insert the code instead of using AddDelegate() method.

Dustin Davis
  • 14,482
  • 13
  • 63
  • 119