Carrotware.Web.UI.Components.CaptchaImage.DecodeColor C# (CSharp) Метод

DecodeColor() публичный статический Метод

public static DecodeColor ( string ColorCode ) : string
ColorCode string
Результат string
        public static string DecodeColor(string ColorCode)
        {
            string sColor = "";
            if (!String.IsNullOrEmpty(ColorCode)) {
                sColor = ColorCode;
                sColor = HttpUtility.HtmlDecode(sColor);
                sColor = sColor.Replace("HEX-", "#");
            }
            return sColor;
        }