Jump to content

Delegates


soulbe

Recommended Posts

Boa noite!

Ando aqui de roda de um programa :wallbash: ...

Tenho um evento ao qual quero adicionar um handler, e crio um delegate com um handler. Agora o meu problema é que tenho métodos estáticos e métodos de instância, e a framework .Net 2.0, a que eu tenho, aceita criar delegates com os dois tipos de métodos, mas quando vai criar o delegate com o método de instância dá-me System.ArgumentException, sendo que o erro,  Error binding to target method.

Agradeço a quem me possa dar ideias de como resolver o meu problema.

Obrigado

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.