/// <summary> /// Add the specified key and value. /// </summary> /// <param name="key"> /// The key to add the value under, must not be null. /// </param> /// <param name="value"> /// The value to add. /// </param> /// <exception cref="ArgumentException"> /// Thrown if <paramref name="key"/> is null. /// </exception> public void Add(string key, Date value) { Preconditions.NotNull("key", key); this.Add(key, value.ToString()); }
/// <summary> /// Add the specified key and value. /// </summary> /// <param name="key"> /// The key to add the value under, must not be null. /// </param> /// <param name="value"> /// The value to add. /// </param> /// <exception cref="ArgumentException"> /// Thrown if <paramref name="key"/> is null. /// </exception> public void Add(string key, bool value) { Preconditions.NotNull("key", key); this.Add(key, value.ToString().ToLowerInvariant()); }