我创建了一个实现IDisposable接口的类,VisualStudio IDE为我提供了Dispose方法。我想知道在Dispose方法中应该编写什么代码,以便它可以处理我的内存管理或其他需要处理的内容。
public class ESNVerification : IDisposable
{
public bool Save(string a,string b)
{
//Save the data to table
return true;
}
public void Dispose()
{
throw new NotImplementedException();
// Really what i should do here ?
}
}