internal void RemoveNameScopeInitializationCompleteSubscriber(EventHandler handler) { NameScopeInitializationCompleteSubscriber item = this._nameScopeInitializationCompleteSubscribers.Find(o => o.Handler == handler); if (item != null) { this._nameScopeInitializationCompleteSubscribers.Remove(item); } }
internal void AddNameScopeInitializationCompleteSubscriber(EventHandler handler) { if (this._nameScopeInitializationCompleteSubscribers == null) { this._nameScopeInitializationCompleteSubscribers = new List <NameScopeInitializationCompleteSubscriber>(); } NameScopeInitializationCompleteSubscriber item = new NameScopeInitializationCompleteSubscriber { Handler = handler }; item.NameScopeDictionaryList.AddRange(this.StackWalkOfNameScopes); this._nameScopeInitializationCompleteSubscribers.Add(item); }
internal void AddNameScopeInitializationCompleteSubscriber(EventHandler handler) { if (_nameScopeInitializationCompleteSubscribers == null) { _nameScopeInitializationCompleteSubscribers = new List <NameScopeInitializationCompleteSubscriber>(); } var subscriber = new NameScopeInitializationCompleteSubscriber { Handler = handler }; subscriber.NameScopeDictionaryList.AddRange(StackWalkOfNameScopes); _nameScopeInitializationCompleteSubscribers.Add(subscriber); }