public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
 }
 public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
     GC.SuppressFinalize(this);
 }
示例#3
0
 public void Dispose()
 {
     //TODO :Lab 02 Exercise 1, Task 4.4 : Implement the Dispose Method
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
 }