Mediator Design Pattern

In object oriented programming, we have lots of objects interacting with each other. As project continues more objects are introduced and the interaction between these objects becomes dependencies between each other. We modify one object and we have to modify another object too because of dependency with each other. Mediator design pattern provides easy interaction …

Mediator Design Pattern Read More
C#

C# Versions and Features

C# versions C# 1 comes in 2002 with .NET framework 1.0 and Visual Studio 2002 C# 2 comes in 2005 with .NET framework 2.0 and Visual Studio 2005 C# 3 comes in 2008 with .NET framework 2.0 and Visual Studio 2008 C# 4 comes in 2010 with .NET framework 4.0 and Visual Studio 2010 C# …

C# Versions and Features Read More

Introduction to Design Patterns

Design patterns is an essential concept in software engineering. Every developer should know about Design patterns and how to apply these patterns in your project. Design Patterns are solutions to some common software design problems. These problems are the recurring design problems that software developers often faced during the development. Design patterns …

Introduction to Design Patterns Read More
C#

C# params

C# params allows you to design a method which accepts variable number of parameters. These parameters are stored in an array and available to called method. static void DoWork(params int[] arr) { if (arr != null) { foreach (var i in arr) { Console.WriteLine(i); } } } There are two ways …

C# params Read More
C#

ref vs out parameters

This post is about difference between ref and out parameters. C# provides three keywords when you defining a method signature. These keywords are: params ref out By default, method arguments are passed by value. That means calling method pass a duplicate copy of data to the called method. If called …

ref vs out parameters Read More