Esempio n. 1
0
            /// <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());
            }
Esempio n. 2
0
            /// <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());
            }