X

The using statement in C#

The using statement in C# is a form of shortcut for try and finally block of code. Things to note…

I refuse to answer your stupid singleton question in interview

In interviews there is always the Singleton question, I personally refuse to answer it on interview. The reason is very…

What is the as keyword in C#? When to use it?

C# has the as keyword, it is mainly used to cast object of one type to another, and if it…

C# what is the yield keyword?

So C# what is the yield keyword? The yield keyword in C# is basically an iterator, its a form of…

C# constructor overloading

In C# if one wishes to use C# constructor overloading they can use the "this" keyword right after to initialize…

C# readonly what is that for?

C# readonly what is that for? The readonly keyword in C# is used as a modifier. A field can be…

What is the @ symbol in front of variables in C#?

From the C# documentation it states that the @ symbol is an Identifier. 2.4.2 Identifiers The prefix "@" enables the…

Detect UTF-8 or UTF-16 BOM in a Stream using C#

Was detecting a file stream if it was Unicode encoded or not, so though I would share the code. Let…

C# Func vs. Action

C# Func vs. Action? What is the difference between a Func vs an Action in C#? The main difference is…

Packt Publishing Instant Automapper

During the summer I have been busy working on my book "Instant AutoMapper", and it did get released at the…