Exemple #1
0
        internal static string TranslateUnderlineText(this eUnderLineType value)
        {
            switch (value)
            {
            case eUnderLineType.Single:
                return("sng");

            case eUnderLineType.Double:
                return("dbl");

            default:
                string ret = value.ToString();
                return(ret.Substring(0, 1).ToLower(CultureInfo.InvariantCulture) + ret.Substring(1, ret.Length - 1));
            }
        }
Exemple #2
0
        private string TranslateUnderlineText(eUnderLineType value)
        {
            switch (value)
            {
            case eUnderLineType.Single:
                return("sng");

            case eUnderLineType.Double:
                return("dbl");

            default:
                string ret = value.ToString();
                return(ret.Substring(0, 1).ToLower() + ret.Substring(1, ret.Length - 1));
            }
        }
Exemple #3
0
 private string TranslateUnderlineText(eUnderLineType value)
 {
     switch (value)
     {
         case eUnderLineType.Single:
             return "sng";
         case eUnderLineType.Double:
             return "dbl";
         default:
             string ret = value.ToString();
             return ret.Substring(0, 1).ToLower(CultureInfo.InvariantCulture) + ret.Substring(1, ret.Length - 1);
     }
 }