Exemple #1
0
 /// <summary>
 /// Set an object as key-value pairs of data to an element
 /// </summary>
 public static HElement Data(this HElement element, object values)
 {
     if (element != null && values != null)
     {
         foreach (var kv in UtilHelpers.ExtractKeyValues(values))
         {
             element.Data(kv.Key, kv.Value);
         }
     }
     return(element);
 }