- Use DebuggerStepThrough attribute to save time when debugging
- How to check email works with no SMTP
- Use DebuggerDisplay attribute for a better debugger experience
- Use parameters instead of string concatenation for forming SQL queries
- Conditional compilation with ConditionalAttribute
- How to perform DateTime calculations in a right way
- Incremental search in Visual Studio
- Quickly locate where the exceptions are thrown
- Don’t clear the stack trace when re-throwing an exception
- Linking a file in Visual Studio.NET
- COALESCE function instead of long CASE WHEN ... ELSE (T-SQL)
- Use DebuggerBrowsable attribute to clean up class view in a debugger
- Big solutions can be organized using Solution Folders
- How to change the default view for Web pages and WinForms in Visual Studio
- Don't generate unnecessary WinForm members for Label controls
- Simplify the usability of your generic methods with type parameter inference
- Consider using System.IO.Path.Combine() instead of string concatenation
- Use Path.GetRandomFileName() or Path.GetTempFileName() when working with temp files
- Conditional breakpoints in Visual Studio
- ?? operator (C#)
- Two approaches to update database row if exists, insert if not
- Improve your code readability: make more sense to conditions
- Verbatim string literals
- Debugger variable $exception
- Validate integer value before casting it to an Enum type
- Speed testing in .NET - System.Diagnostics.Stopwatch
- Optimize the launch of the Visual Studio 2005
- Add Windows Explorer to your Visual Studio tools menu
- Send an e-mail any time an unhandled exception occurs
- Correct event invocation
- .NET Developers’ Reference Card Roundup
- Visual Studio Tips & Tricks
Friday, 11 January 2008
.Net Development Tips
I found very handy site called ".NET Tip of The Day". It has posts with heaps of good tips. Below is the list of tips I find very useful for my own use and future reference. I will expand this list as I go through it. Feel free to comment and suggest your own tips.
Subscribe to:
Posts (Atom)