/// <summary> /// Adds an element with the provided key to the dictionary. /// </summary> /// <param name="dic">The dictionary to extend.</param> /// <param name="key">The <see cref="AttributeName"/> to use as the key of the element to add.</param> public static void AddNull(this IDictionary <AttributeName, AttributeValue> dic, string key) { Validator.ThrowIfNull(dic, nameof(dic)); Validator.ThrowIfNullOrWhitespace(key, nameof(key)); dic.Add(key, AttributeValueFactory.CreateNull()); }