/// <summary> /// Returns a string that represents the current object /// </summary> public override string ToString() { return(string.Join("; ", attributes.Select(a => $"{a.Name}={a.Value}"))); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { HtmlAttributeCollection attributes = value as HtmlAttributeCollection; return(string.Join(" ", attributes.Select(p => p.Name + ":" + p.Value))); }