Directly deriving from MulticastDelegate

  • Thread starter Thread starter Paul Selormey
  • Start date Start date
P

Paul Selormey

Hello All,
It is possible with C#? If not, anyway to define my own event
accessor methods as in MC++?

Best regards,
Paul.
 
Paul said:
Hello All,
It is possible with C#? If not, anyway to define my own event
accessor methods as in MC++?

actually you derive from MulticastDelegate when
you define a delegate type like:

public delegate void SomeEvnetHandler(object sender, SomeArgs e)

the C# event accessor syntax is:

event Name {
add {
}
remove {
}
}

bye
Rob
 
Thanks for the response.
I mean direct derivation from the MulticastDelegate, not the
compiler auto-generated codes.

Best regards,
Paul.
 
Paul said:
Thanks for the response.
I mean direct derivation from the MulticastDelegate, not the
compiler auto-generated codes.

That's not possible. Even managed C++ cannot inherit from
MulticastDelegate.

bye
Rob
 
Back
Top