Build solution vs. Rebuild solution vs. Clean solution Menu

Build solution menu

This will perform an incremental build. In other words it will only build code files which have changed. If they have not changed those files will not be touched.

Rebuild solution menu

This will delete all currently compiled files (i.e., exe and DLLs) and will build everything from scratch, irrespective of if there is code change in the file or not. Continue reading

What is the difference between String.Empty and “” and null?

Use null when you want to represent that there is no value;
Use String.Empty when you want to represent that there is a value, but the value is a blank string.
String.Empty because it is a static variable, rather than “” which has to create a new string, and null means that you must then set the string equal to a new instance of a string. Continue reading