Exemplo n.º 1
0
 /// <summary>
 /// Returns a string that represents the current object
 /// </summary>
 public override string ToString()
 {
     return(string.Join("; ", attributes.Select(a => $"{a.Name}={a.Value}")));
 }
Exemplo n.º 2
0
        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)));
        }