public ProviderDefinition(ProviderDefinitionDescription description) { if (description == null) { throw new ArgumentNullException("description"); } this.description = description; this.stack = new EventStack(); this.events = new Dictionary <int, EventDefinition>(); this.stack = new EventStack(); foreach (var eventDefinitionDescription in description.Events) { this.events.Add(eventDefinitionDescription.Key, new EventDefinition(eventDefinitionDescription.Value, this.stack)); } }
internal ProviderDefinition(ProviderDefinitionDescription description, Dictionary <int, EventDefinition> events) { this.description = description; this.events = events; }