Make the first letter big in the line.



  • There's a line. САНКТ-ПЕТЕРБУРГ♪ how do I get her in line ♪ Санкт-Петербург? Split the line, translate the whole text into the bottom register, then add the first letter, then tie it up. Is there a more beautiful solution?



  • Try the method. https://msdn.microsoft.com/ru-ru/library/system.globalization.textinfo.totitlecase(v=vs.110).aspx :

    CultureInfo.CurrentCulture.TextInfo.ToTitleCase(str.ToLower());
    

    Example: https://dotnetfiddle.net/T9PZxw ♪


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2