コード例 #1
0
 /// <summary>
 /// Из чего состоит капча
 /// </summary>
 public CaptchaConfig SetCharType(CaptchaCharTypeEnum value)
 {
     if (value == CaptchaCharTypeEnum.Default)
     {
         parameters.Remove("numeric");
     }
     else
     {
         parameters["numeric"] = ((int)value).ToString();
     }
     return(this);
 }
コード例 #2
0
 public CaptchaConfig SetCharType(CaptchaCharTypeEnum value)
 {
     if (value == CaptchaCharTypeEnum.Default)
     {
         parameters.Remove("numeric");
     }
     else
     {
         Dictionary <string, string> dictionary = parameters;
         string key = "numeric";
         int    num = (int)value;
         dictionary[key] = num.ToString();
     }
     return(this);
 }