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
amit_gupta14
NA
119
0
Dominique LeBlond: what happened in base class instructor
Dec 8 2004 6:46 AM
public class MyException : Exception { public MyException ( string message ) : base ( message ) { } } try { if(len>5) throw new MyException("length cannot be > 5"); } catch (MyException my) { Console.WriteLine(my.Message); } //----------------------------------- above, "length cannot be > 5" passed as parameter to base class constructor. What happened in base class instructor? How /why "length cannot be > 5" passed to catch block?
Reply
Answers (
3
)
Dominique LeBlond: see the example
Trying to figure out Threading