/// <summary> /// Initializes a new instance of the <see cref="Directives"/> class. /// </summary> /// <param name="directives"> /// The original set of resolution directives. /// </param> public Directives(Resolution.Directives directives) { if (directives == null) { return; } this.directives = directives; this.enumerator = new DirectivesEnumerator(directives); }
/// <summary> /// Initializes a new instance of the <see cref="DirectivesEnumerator"/> class. /// </summary> /// <param name="directives"> /// The resolution directives to be enumerated. /// </param> public DirectivesEnumerator(Resolution.Directives directives) { this.directives = directives; this.currentIndex = -1; this.currentDirective = default(Resolution.Directive); }