r/shittyprogramming • • Nov 20 '18

How to Capitalize a String

word.ToCharArray()[0] = word.ToCharArray()[0].ToString().ToUpper().ToCharArray()[0];

69 Upvotes

37 comments sorted by

View all comments

Show parent comment

2

u/techworker123 Nov 21 '18

found my master, sorry for trying to teach you what you already know!