The following code works fine in the editor but won’t build for Windows Store XAML C#.
private string Capitalise(string ToCapitalise)
{
return System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(ToCapitalise);
}
error CS1061: ‘System.Globalization.TextInfo’ does not contain a definition for ‘ToTitleCase’ and no extension method ‘ToTitleCase’ accepting a first argument of type ‘System.Globalization.TextInfo’ could be found (are you missing a using directive or an assembly reference?)
Is there an alternative - rather than having to write my own code?