/// <summary> /// Из чего состоит капча /// </summary> public CaptchaConfig SetCharType(CaptchaCharTypeEnum value) { if (value == CaptchaCharTypeEnum.Default) { parameters.Remove("numeric"); } else { parameters["numeric"] = ((int)value).ToString(); } return(this); }
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); }