2
Reply

Defining a Contructor wih a ~ (tilde)

Rafael Soteldo

Rafael Soteldo

Mar 19 2012 9:47 AM
1.4k
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

Answers (2)