private void CheckGenericCache() { if (this.genericCache == null) { this.genericCache = new GenericMethodSignatureCache <IMethodSignatureParameterMember <TSignature, TSignatureParent>, TSignature, TSignatureParent>(); } }
private void CheckGenericMethodCache() { lock (this.SyncObject) if (this.genericMethodCache == null) { this.genericMethodCache = new GenericMethodSignatureCache <IMethodSignatureParameterMember <TSignature, TParent>, TSignature, TParent>(); } }
public override void Dispose() { try { lock (this.syncObject) if (this.genericCache != null) { this.genericCache.Dispose(); this.genericCache = null; } } finally { base.Dispose(); } }
protected override void Dispose(bool disposing) { try { lock (this.SyncObject) { if (this.genericMethodCache != null) { this.genericMethodCache.Dispose(); } this.genericMethodCache = null; } } finally { base.Dispose(disposing); } }