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

8

u/ToastDroid Nov 20 '18

it doesn't

4

u/TheTrueSwishyFishy Nov 20 '18

I like working code that takes unnecessary and extreme measures to do something, so I was wondering if that was what you were going for, I see now that it was meant to not work... I may have been whooshed