It seems I’m always forgetting how to show hidden files in the solution explorer of vs2008.  I know it’s someplace in one of the menu’s but I can’t seem to find it.  For now, the way I turn on and off this feature is by clicking the button right above the Solution explorer as shown below.  For everyone’s (including mine)  information, below are the two views of solution explorer.

ShowAllFiles1                ShowAllFiles2

(more…)

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:  http://en.csharp-online.net/CSharp_String_Theory%E2%80%94string_versus_String

Juval Lowy has some coding standards at http://www.idesign.net 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. 


© 2012 PeterKellner.net. All Rights Reserved
Follow

Get every new post delivered to your Inbox

Join other followers: