Category Archives: C#

A better switch with Lambdas in .NET, Part 3 (Adding a IComparer)

By | September 13, 2013

Well, after the previous two post, I think you have clearly got an idea on how the Lambda switcher works and even you might have already started applying them in your day to day projects. While, I have shown Equals comparison and one for StringComparison, sometimes, this couldn’t facilitate everything that we need. In this post, I would… Read More »

A better switch with Lambdas in .NET, Part 2 (A StringComparison implementation)

By | September 12, 2013

In my previous post, I have implemented one simple Lambda based switch case which complement the existing switch cases with some additional support of other objects that implements Equals operator in their code. But the implementation that I have provided wouldn’t made you much sense to add in your project or if you are really a fan of… Read More »

A better switch with Lambdas in .NET, Part 1

By | September 11, 2013

I don’t know which programming language you belong to, or which is the best language you have been working on… but one of the best syntax that I think you should be proudly using is the very old switch / case operators. The Switch/case operator gives an clean and clear look on what the code is intended to… Read More »

Using or Using ?

By | September 6, 2013

The title of this post is confusing enough! Really ? nevertheless to say, you are smart enough to guess on what we are going to talk about. One of the frequent question that comes in the .NET interview is “What is the difference between Using Directives and Using Statement ?” Sometimes the interviewers puts some extra trap by asking… Read More »

Asynchrony with Dispatcher in WPF

By | September 3, 2013

The new addition of async and await have already created buzz in the city with the superior language support of calling asynchronous code that looks pretty synchronous. There are two keywords that has been introduced to handle this behavior. The async is a specifier which directs the compiler to orchestrate automatically during the compilation to change its behavior… Read More »