Hi there:
I'm checking some article and I ran into this:
public partial class MyClass {
public MyClass(string something) {
// Some stuff
}
~MyClass() { // HERE: I know that this is the default constructor, but, what is "~" ?
// Some other stuff...
}
}
Thanks in advance for your answer.
Raael
Defining a Contructor wih a ~ (tilde)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

darma tejaRank #3,199 · 449 reputationPosted Mar 19, 2012, 5:51 AM EDT
It is for destructor. ~ symbol is used for destructor.
Darma
Rafael Soteldo3 reputationPosted Mar 19, 2012, 5:55 AM EDT