/// <summary> /// Adds or updates the item in the collection. /// </summary> /// <param name="collection"> The collection to be updated. </param> /// <param name="items"> The items to be added or updated. </param> public static void AddOrUpdateRange(this ICollection <EventValue> collection, params EventValue[] items) { foreach (var item in items) { collection.AddOrUpdate(item); } }
public static void AddOrUpdate(this ICollection <Property> properties, string name, object value) { properties.AddOrUpdate(null, name, value); }