Callback Reentrancy or returning values in callback or duplex service

PART#1 of this article is here Objective: This article will explain how to return values in call back or duplex operation. Before reading this article, I strongly recommend to read my first article post on this series. This article is fully based on the A Simple Duplex Service in WCF. If you read above article, … Continue reading Callback Reentrancy or returning values in callback or duplex service

A Simple Duplex Service in WCF

Objective This article will give step by step explanation on how to create a simple duplex service in WCF. In call back operation or duplex service, Service can also call some function at the client . 1. Duplex service allows calling back some operation (function) on the client. 2. Duplex service also knows as Call … Continue reading A Simple Duplex Service in WCF

Anonymous types in C# 3.0

1. Anonymous types are new feature being added in C# 3.0. 2. These are data types being generated on the fly at the run time. 3. These data types are generated through complier rather than explicit class definition. Program.cs using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace ConsoleApplication17{    class Program    {        static void Main(string[] args)        {     … Continue reading Anonymous types in C# 3.0

Collection initializer in C# 3.0

1. Collection initializer is new feature of C# 3.0 2. Collection initializer gives a simple syntax to create instance of a collection. 3. Any object that is implementing System.Collections.Generic.ICollection<T> can be initialized with collection initializer. Let us say, we have a class Student.cs public  class Student     {        public string FirstName { get; … Continue reading Collection initializer in C# 3.0