Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String.Format against string.Format. Any issues?

Tags:

string

c#

Is there any performance differences between string.Format and String.Format ? As far as i understand string is a shortcut for System.String and there's no difference between them. Am i right?

Thanks!

like image 908
0100110010101 Avatar asked Dec 01 '22 12:12

0100110010101


2 Answers

Those are exactly the same. "string" is just an alias for "System.String" in C#

like image 101
Philippe Leybaert Avatar answered Dec 13 '22 05:12

Philippe Leybaert


string and String both resolve to System.String. So no there is no difference at all.

like image 22
Mark Avatar answered Dec 13 '22 04:12

Mark