Пример #1
0
 public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
 }
Пример #2
0
 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;
     }
 }