Browse by Tags

All Tags » Back to Basic (RSS)

Back to Basic: C# Using statement, Return and IDisposable

In day to day coding, I found myself using a lot of disposable objects like DbConnection, Font, etc. And so, naturally, putting this code block inside a using statement is common sense. In theory, I know that when you use a using block in your code, your...
Posted by Jimmy Chandra | with no comments
Filed under: , , ,

Back to Basic: Debug.Assert(...)

I wonder how many of us litter our code with this particular line? How do you use them? Do you know what you need to watch out when you do use them? Is it necessary to put this line of code in our code? What is the consequence of putting this line into...
Posted by Jimmy Chandra | 1 comment(s)
Filed under: , ,