postincrement and preincrement in c#

Today I was working in C# and I write a code like this. I see the value it returns is 4, not 5. What could go wrong?. The reason is my function return the object before increment it (apply +1). So what thing is in it that is a little uneasy to understand When you return n++, you return n and then modifying the object.  If you return ++n you …

How to check crash issue in C# apps ?

Recently I was working on a C# application. Suddenly someone asks "Are you able to remove all the dll in bin folder". The one thing that splashes in my mind was Jetbrain Resharper. It can be used to Remove the Library Reference that is not used in the app.  I go ahead and do. The reference is gone but bin still has the dll. Next thing I did…