Hi I am trying to convert some strings fetched from database into 'Title case' however it is not working for records like 'JAMES Smith'. The output is all the same. Any clue fellows ?
TextInfo companyName = new CultureInfo("en-US", false).TextInfo;
if(!myRecord.IsDBNull(myRecord.GetOrdinal("GENCLIENTNAME")))
{
myCompany.GenClientName =companyName.ToTitleCase(myRecord.GetString(myRecord.GetOrdinal("GENCLIENTNAME")));
}