private string Build() { var options = AttributeOptions.UseOrCreate(Options); return(string.Join(" ", this.Select(a => { if (a.Options == null) { a.Options = options; } return a.ToString(); }) .Where(val => !string.IsNullOrEmpty(val)) )); }
public AttributeList(IEnumerable <KeyValuePair <string, object> > attributes, AttributeOptions options = null) : base(attributes, options) { }
public AttributeList(AttributeOptions options = null) : base(options) { }
public AttributeListBase(AttributeOptions options = null) { Options = options; }
public AttributeListBase(IEnumerable <KeyValuePair <string, object> > attributes, AttributeOptions options = null) : this(options) { if (attributes == null) { return; } foreach (var pair in attributes) { Add(new AttributeBase(pair.Key, pair.Value)); } }