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
Joshua
NA
1
0
Decrement a static variable of a class after an object it has been destroyed
Mar 11 2009 3:58 AM
Hi,
Say I have a class
Student
which has a static field
Count
. I need to increment it whenever a new object of
Student
is created and decrement it whenever any object of
Student
is destroyed.
I know that increment can be done in the constructor but what about decrement, since there is no destructor.
Reply
Answers (
1
)
WCF ,To set username token,timestamp information in wcf
Reading and listing the Messaging Queues in a web application using System.Messaging Class