public HtmlBuilder BeginOption(HtmlBuilderOptionType type, string key, string value, int size)
 {
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     _option = new HtmlOption {
         Type = type, Key = key, Value = value, Size = size
     };
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Begins the option.
 /// </summary>
 /// <param name="type">The type.</param>
 /// <param name="key">The key.</param>
 /// <param name="value">The value.</param>
 /// <param name="size">The size.</param>
 /// <returns></returns>
 public HtmlBuilder BeginOption(HtmlBuilderOptionType type, string key, string value, int size)
 {
     if (key == null)
         throw new ArgumentNullException("key");
     if (value == null)
         throw new ArgumentNullException("value");
     _option = new HtmlOption { Type = type, Key = key, Value = value, Size = size };
     return this;
 }