/// <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(); } }
/// <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; }