ListBoxTidigareAnstallning.Items.Add(firstcharacterupper(empPreWork.prev_work_name_company_sve + "," + empPreWork.pre_work_city + " " + empPreWork.from_date +"-"+empPreWork.to_date+empPreWork.pre_work_description_sve));
public string firstcharacterupper(string str) { return CultureInfo.CurrentCulture.TextInfo.ToTitleCase(str.ToLower()); }
static string UppercaseFirst(string s) { // Check for empty string. if (string.IsNullOrEmpty(s)) { return string.Empty; } // Return char and concat substring. return char.ToUpper(s[0]) + s.Substring(1).ToLower(); }
UppercaseFirst("Codeproject");
s.Substring(1)
s.Substring(1).ToLower()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)