TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark Maguire
NA
17
17.8k
How do you -- Declare a List object implementing a class type that supports events
May 16 2011 9:22 AM
I need to initialize a List object and assign it to a class type that supports events.
If I wanted to intialize my class normally to support events it would be:
oObj = new MyClass();
oObj.evtMyEvent += new RecordDealt(RecordRead);
I have a collection set up of MyClass using the following code:
oObj = new List<MyClass>
How do I initialise it so that I can access events from MyClass whilst still being in a List?
Thanks
M
Reply
Answers (
4
)
Problem - Inserting new record in a GridView at certain position, after a certain row
read a word from console, and match that exact word with a given string ( c#)