private void Dispose(bool disposing) { if (disposing) { if (assertions != null) { foreach (var assert in assertions) { if (assert != null && assert is IDisposable) { ((IDisposable)assert).Dispose(); } } assertions.Clear(); } if (allAssertions != null) { foreach (var assert in allAssertions) { if (assert != null && assert is IDisposable) { ((IDisposable)assert).Dispose(); } } } } parent = null; assertions = null; allAssertions = null; }
internal SecurityAssertionRegistrar(SecurityAssertionRegistrar parent) { this.parent = parent; assertions = new List <ISecurityAssert>(); }