Alex Rivera | Logout

Is there a CapitalizeFirstLetter method?

Asked 2009-04-14T16:38:30.727
12

Is there a method to do that? Could it be done with an extension method?

I want to achieve this:

string s = "foo".CapitalizeFirstLetter();
// s is now "Foo"
Edit
Report

1 Answer

10
answered 2009-04-14T16:44:52.007

Your Answer