/// <summary> An AttributeSource using the supplied <see cref="AttributeFactory" /> for creating new <see cref="IAttribute" /> instances.</summary> public AttributeSource(AttributeFactory factory) { this.attributes = new GeneralKeyedCollection <Type, AttributeImplItem>(att => att.Key); this.attributeImpls = new GeneralKeyedCollection <Type, AttributeImplItem>(att => att.Key); this.currentState = new State[1]; this.factory = factory; }
/// <summary> An AttributeSource that uses the same attributes as the supplied one.</summary> public AttributeSource(AttributeSource input) { if (input == null) { throw new System.ArgumentException("input AttributeSource must not be null"); } this.attributes = input.attributes; this.attributeImpls = input.attributeImpls; this.currentState = input.currentState; this.factory = input.factory; }
/// <summary> /// An AttributeSource that uses the same attributes as the supplied one. /// </summary> public AttributeSource(AttributeSource input) { if (input == null) { throw new System.ArgumentException("input AttributeSource must not be null"); } this.Attributes = input.Attributes; this.AttributeImpls = input.AttributeImpls; this.CurrentState_Renamed = input.CurrentState_Renamed; this.Factory = input.Factory; }