我正在做一个示例,看到了这个...
#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
我尝试通过谷歌搜索但没有找到任何结果... 我只是想知道它的意思。 有人知道吗?
谢谢