Ask a questionAsk a question
 

Answerthe meaning of ~

  • Saturday, November 07, 2009 9:15 PMr.hartl Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Here is a constructor for a class that imports images from a webcam.  What does "~WebCamCapture()" mean??? It looks like it might be method declaration, but I can't find anything in the documentation for C#.




    public

     

    WebCamCapture()

    {

     

    // This call is required by the Windows.Forms Form Designer.

    InitializeComponent();

    }

     

    /// <summary>

     

    /// Override the class's finalize method, so we can stop

     

    /// the video capture on exit

     

    /// </summary>

    ~WebCamCapture()

    {

     

    this.Stop();

    }

                                                           -- Rich

Answers

All Replies