Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: External component has thrown an exception Pin
Member 102708252-Oct-13 0:38
Member 102708252-Oct-13 0:38 
GeneralRe: External component has thrown an exception Pin
Dave Kreskowiak2-Oct-13 4:37
mveDave Kreskowiak2-Oct-13 4:37 
GeneralRe: External component has thrown an exception Pin
ramonminarro11-Mar-22 3:10
ramonminarro11-Mar-22 3:10 
GeneralRe: External component has thrown an exception Pin
Dave Kreskowiak11-Mar-22 3:46
mveDave Kreskowiak11-Mar-22 3:46 
QuestionC# assignment please help Pin
bmulgrew11-Oct-13 18:07
professionalbmulgrew11-Oct-13 18:07 
AnswerRe: C# assignment please help Pin
Abhinav S1-Oct-13 21:10
Abhinav S1-Oct-13 21:10 
AnswerRe: C# assignment please help Pin
OriginalGriff1-Oct-13 21:25
mveOriginalGriff1-Oct-13 21:25 
GeneralDestructors Pin
N8tiv1-Oct-13 15:34
N8tiv1-Oct-13 15:34 
Okay, so here's what I understand about Destructors…

They are mainly used to help clear up any resources with unmanaged i.e. code, streams, certain type of events etc.
I also understand you put it inside your class at the very bottom preceded with a tilde, same name as the class… No modifiers of any kind.

Here is where I'm a little confused; in the example's I was given… It has just this and nothing else:
C#
~MyClass
{
//destruction statements
}


Will it work "good enough", without adding any "destruction statements"?
Or…
Should I be entering some statements to make sure it's taken care of?

GeneralRe: Destructors Pin
Richard Andrew x641-Oct-13 16:29
professionalRichard Andrew x641-Oct-13 16:29 
GeneralRe: Destructors Pin
N8tiv1-Oct-13 16:31
N8tiv1-Oct-13 16:31 
GeneralRe: Destructors Pin
Richard Andrew x641-Oct-13 17:09
professionalRichard Andrew x641-Oct-13 17:09 
GeneralRe: Destructors Pin
Dave Kreskowiak1-Oct-13 17:05
mveDave Kreskowiak1-Oct-13 17:05 
GeneralRe: Destructors Pin
Richard Andrew x641-Oct-13 17:08
professionalRichard Andrew x641-Oct-13 17:08 
GeneralRe: Destructors Pin
Keith Barrow1-Oct-13 22:45
professionalKeith Barrow1-Oct-13 22:45 
GeneralRe: Destructors Pin
N8tiv1-Oct-13 19:56
N8tiv1-Oct-13 19:56 
AnswerRe: Destructors Pin
Ron Beyer1-Oct-13 17:48
professionalRon Beyer1-Oct-13 17:48 
GeneralRe: Destructors Pin
jschell2-Oct-13 8:42
jschell2-Oct-13 8:42 
AnswerRe: Destructors Pin
Abhinav S1-Oct-13 21:12
Abhinav S1-Oct-13 21:12 
GeneralRe: Destructors Pin
Pete O'Hanlon1-Oct-13 21:58
mvePete O'Hanlon1-Oct-13 21:58 
QuestionEager Loading Problem Pin
eddieangel1-Oct-13 11:53
eddieangel1-Oct-13 11:53 
AnswerRe: Eager Loading Problem Pin
Mycroft Holmes1-Oct-13 12:54
professionalMycroft Holmes1-Oct-13 12:54 
GeneralRe: Eager Loading Problem Pin
eddieangel1-Oct-13 13:06
eddieangel1-Oct-13 13:06 
QuestionSending SMS Text Messages Pin
Kevin Marois1-Oct-13 5:35
professionalKevin Marois1-Oct-13 5:35 
AnswerRe: Sending SMS Text Messages Pin
Keith Barrow1-Oct-13 5:49
professionalKeith Barrow1-Oct-13 5:49 
QuestionHow to use WM_PASTE ? Pin
Mahmoud EL-Shazly1-Oct-13 0:49
Mahmoud EL-Shazly1-Oct-13 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.