Example #1
0
 /// <summary>
 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 /// </summary>
 /// <filterpriority>2</filterpriority>
 public void Dispose()
 {
     roc = null;
     if (this.OnDispose != null)
     {
         this.OnDispose();
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReadOnlyContext"/> class. 
 /// Inicia um contexto somente para leitura. Somente chamar dentro de using().
 /// </summary>
 public ReadOnlyContext()
 {
     roc = this;
 }