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

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