I have a large XML file that contain tag names that implement the dash-separated naming convention. How can I use C# to convert the tag names to the camel case naming convention
string ConvertDashToCamelCase(string input) { string[] words = input.Split('-'); words = words.Select(element => wordToCamelCase(element)); return string.Join("", words); } string wordToCamelCase(string input) { return input.First().ToString().ToUpper() + input.Substring(1).ToLower(); }