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
Hesham Rashwan Ali Mohamed
NA
65
1.9k
C# Distructor Issue
Mar 24 2019 1:25 PM
I have an issue in my code which is :
i have 2 classes Parent and Child
class
Parent
{
List<Child> Childs1 =
new
List<Child>();
List<Child> Childs2 =
new
List<Child>();
Parent()
{
// Some Code
}
~Parent()
{
Console.WriteLine(
"Hello World!!"
);
}
}
class
Child
{
// Some Code
}
// Output :-
Hello World!!
Hello World!!
- Why the parent distructor is been called twice when instantiated in the main after the program is closed?
Reply
Answers (
2
)
Selection changed textbox value C#
Is there a way we can create table data dynamically in html?