Defining events in interfaces

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,
I'd like to know if it makes sense to define an event in an
interface. Something like:

public interface class MyInterface1
{
event PropertyChangedEventHandler^ PropertyChanged;
} ;

In particular, what will happen if a class derives from two interfaces
defining events having the same name (but possibly not the same args) ?

Chris.
 
Hi Chris,

The Interface class will support events in the new C++/CLI, please review
the latest C++/CLI Language Specification for the related information:
http://msdn.microsoft.com/visualc/homepageheadlines/ecma/default.aspx


By the way, we suggest you post the new C++/CLI related issue in our
Whidbey Technology Preview newsgroup
(microsoft.private.whidbey.cplusplus.language):
http://communities.microsoft.com/newsgroups/default.asp?icp=whidbey&slcid=us


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top