मैं एक उदाहरण के माध्यम से काम कर रहा था और मैं इस देखा ...एक विधि कॉल के सामने एक टिल्ड डालने?
#if DEBUG
/// <summary>
/// Useful for ensuring that ViewModel objects are properly garbage collected.
/// </summary>
~ViewModelBase()
{
string msg = string.Format("{0} ({1}) ({2}) Finalized", this.GetType().Name, this.DisplayName, this.GetHashCode());
System.Diagnostics.Debug.WriteLine(msg);
}
#endif
मैं यह गूगल की कोशिश की लेकिन कोई भी परिणाम नहीं मिल सका ... मैं बस सोच रहा था कि इसका क्या मतलब। किसी को पता है?
धन्यवाद
संभावित डुप्लिकेट [सी # में टिल्ड (~) का मतलब क्या है?] (Http://stackoverflow.com/questions/188688/what-does-the-tilde-mean-in-c) –
आपको स्वीकार करना चाहिए आपके सवालों के जवाब। – SLaks