X

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…

100% disk usage after Win 8.1 upgrade

Over the weekend I upgrade to win 8.1 and after upgrade I found my disk usage at 100% and it…

C# var keyword misconceptions

Lots of developers confuse the var keyword in C# with JavaScript. The var keyword was introduced in C# 3.0, and…