Example #1
0
        public void Set(String key, Boolean value)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            Fields[key] = new HeaderFieldValue <Boolean>(value);;
        }
Example #2
0
        public void Set(String key, DateTime value)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            Fields[key] = new HeaderFieldValue <DateTime>(value);
        }
Example #3
0
        /*
        ** "Set" methods. All "Set" methods overwriting previous value, if it already exists.
        */

        public void Set(String key, String value)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            Fields[key] = new HeaderFieldValue <String>(value);
        }