Somthing like this:
private void DoSomthing()
{
AA a = new AA();
// do somthing with a
a.Dispose(); //
}
Is it necessary call the last line (a.Dispose) ? In C++, I would do it w/o second thought. But in C#, I am not so sure about it.
Any suggestion? Thanks in advance.
private void DoSomthing()
{
AA a = new AA();
// do somthing with a
a.Dispose(); //
}
Is it necessary call the last line (a.Dispose) ? In C++, I would do it w/o second thought. But in C#, I am not so sure about it.
Any suggestion? Thanks in advance.