One thing a developer does all the time is debugging code, very obvious. At times the value of property or output of a method you are interested in might be deep inside a class. While debugging you would frequently add them to quick watch window or pin (bookmark) them to reach out quickly. One productivity tip is that you can use DebuggerDisplay on entities to make it quickly accessible while debugging. Let's take a simple class as example: namespace DebuggerDisplaySample { using Sys » Read more

 Jsinh        

For all those important methods of your application where you would like to / have check an input parameter or output result for null / empty check. In case you don't want those checks while you release and only want them to be break into debug or pause while debugging - Debug.Assert is your friend. Let say we have a method that takes string as input: private void SomeMethodAbc(string someInput) { //// TODO: Doing something in here !! } What you want is to validate that someInput is » Read more

 Jsinh