PC Review


Reply
Thread Tools Rate Thread

can event properties be part of the interface?

 
 
puzzlecracker
Guest
Posts: n/a
 
      8th Oct 2008
I have about 100 of this sort in my main clas, and I would like to put
them into interface:

in Main class:
public event onFooHandler OnFoo { add { m_dispatcher.onFoo +=
value; } remove { m_dispatcher.onFoo -= value; } }
....
 
Reply With Quote
 
 
 
 
Peter Morris
Guest
Posts: n/a
 
      8th Oct 2008
You only need

public event FooHandler Foo;

"On" is a Delphi syntax :-)



--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Available methods and properties through OLE interface Greg Luce Microsoft Excel Misc 3 13th Dec 2007 07:40 PM
which event will handle drap & drop web part to other web part zone? tony dong Microsoft Dot NET 0 7th Feb 2006 10:38 PM
Event Log service missing - Event Viewer Interface Unknown Jerry Jeff Windows XP General 1 31st May 2005 07:53 PM
Several problems: event properties, network adapter properties stop working =?Utf-8?B?TWF0aGlhcw==?= Microsoft Windows 2000 0 8th Mar 2004 10:01 AM
Validate if field is part of an interface Warpig Microsoft C# .NET 3 12th Nov 2003 06:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 PM.