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)); } }
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)); } }
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); } }