In this article, we will discuss the often confused topic of Implementing the IDisposable
interface. We will try to see when should be need to implement the IDisposable
interface and what is the right way of implementing it. Continue reading
C#
Program to Interface, not Implementation – Beginner’s Tutorial for Understanding Interface, Abstract class and Concrete class
In this article we will look into the details of Interfaces, Abstract class and Concrete class in C#. We will try to understand what each of them are and when should we use interfaces, abstract classes and concrete casses to have a better design for the application. Continue reading
Nullable Types in C# – A Beginner’s Tutorial
This article talks about Nullable
types in C#. We will see when could we find ourselves in need for Nullable
types and what should we know if we are dealing with Nullable
types. Continue reading
A Beginner’s Tutorial on String Comparison in C#
This small article talks about the right way of comparing strings in a C# application. We will try to see what are the various ways we can compare the strings and which one should be or should not be used. Continue reading
A Beginner’s Tutorial on Operator Overloading in C#
This article talks about the operator overloading in C#. What are the various types of operators that can be overloaded. We will create a small dummy application to see how can we overload some basic operators. Continue reading
A Beginner’s Tutorial on Implementing IEnumerable Interface and Understanding yield Keyword
In this article we will discuss about the IEnumerable
interface. We will discuss how IEnumerable
interface facilitate the use of foreach
statement to iterate through a set of data. We will then look how to implement our own collections that implement IEnumerable
interface. The use of yield keyword and Enumerating generic collections will also be discussed in this article. Continue reading
A Beginner’s Tutorial on Extension Methods, Named Parameters, Optional Parameters, Object Initializers and Anonymous types in C#
In this article we will discuss four very important features of C# programming language. These new features are introduced in the later versions of C# and developers coming from the older version like C# 2.0 or perhaps learning C# might find this article useful. Continue reading
A Beginner’s Tutorial on Basics of Delegates, Anonymous Functions and Lambda Expressions in C#
This article talks about the delegates and how to write delegate handlers using functions, anonymous functions and Lambda expressions. This article is written from a beginner’s perspective and contain very introductory material on the related topics. Continue reading
A Beginner’s Tutorial – Type Casting and Type Conversion in C#
This small article discusses about type casting in C#. We will look into how implicit
type casting works, when will we need explicit
casts and how can we enhance our user defined types to support implicit
or explicit
casts. Continue reading
MusicDrawer: A Simple Music player using WMP SDK
This application is a C# application capable of playing audio files using WMP SDK. The idea here is to use the bare minimum playback functionalities from WMP SDK and create our own business logic and UI on top of that. Although it seems like an overkill since the WMP SDK provides facilities for playlist management and controlling the playback, doing everything by ourselves gives us more control and more learning (the most important aspect of this exercise). Continue reading