In C#, When to use String verses string

Posted by Peter Kellner on December 29, 2007 · 1 min read

So, technically, String and string mean exactly the same thing in C#.  string, is an alias for String (aka a shorthand) for System.String.  So, when should use which?  It seems that the convention is to use string when you are referring to an object and String when you are referring specifically to the string class.

This is basically what is said at this URL:

Juval Lowy has some coding standards at that says basically the same thing.  From the document on IDesign's web site the following examples show what is best practices (which I completely agree with).

idesign1                            idesign2

That's it for now.