I want to take the string the lord of the rings
and Title Case it to The Lord of the Rings
.
However the built in .ToTitleCase()
function capitalizes every word. The Lord Of The Rings
.
I want to use the English rules here and Lower Case of
and the
and other conjunctions.
https://english.stackexchange.com/a/34
C#
string title = "the lord of the rings";
TextInfo textinfo = new CultureInfo("en-US", false).TextInfo;
title = textinfo.ToTitleCase(title);