public void Remove(Type expectType, bool promote = false) { if (expectType == null) { throw new ArgumentNullException(nameof(expectType)); } List <ICallSite> lists; CacheType.TryRemove(expectType, out lists); if (this._hasParent && promote) { this.Parent.Remove(expectType, promote); } }