C# 4.0 Meet the team

Almost an hour of conversation about C# 4.0 from the (Almost new) C# team, you will be surprised who joined the new C# team which can give you a hint about the future of C#. C# 4.0 is one of the greatest achievements of MS and it is still proving that with every new release,…

1

Using WebHttpBinding & JSON Support in WCF

I had some cool time working with WCF new features shipped with .net 3.5, one of the most ineteresting and useful features is the JSON support and how easy you can enable the JSON support for your current WCF services by changing the configurations. Why do we need JSON support? Well, JSON (JavaScript Object Notation)…

0

Command Design Pattern in C# 2.0

I have posted before about how to implement the observer pattern using C# in a way that is more suitable to C# and uses its functionalities to produce more elegant code.This time I am re-implementing the Command pattern in a C# way.First of all, let’s see the classic Command Pattern UML diagramAs you can see…

0

Observer Pattern in C# = Events & delegates

One of the most interesting patterns in Design Patterns is the Observer pattern which is listed under Behavioral Patterns, it is really important how to make other classes which are interested in the state of another object get notified when the state changed.To read more about Observer patternThis is the classic Observer pattern which used…

3

.Net & C# Interview question, along with general programming questions

Hey, These are some Interview Questions with suggested answers we collected in Middle-East-Developers, for more questions in other fields like C++, you can check the group.These questions are collected by Adel Khalil Yehia Megahed Hisham Abd El-Hafez Mohammed HossamQ1: Can DateTime variables be null?A1: No, because it is a value type (Struct)Q2: Describe the Asp.net…

2

StructLayout attribute magic

I’ve been reading for a while in the great CLR via C# second edition book, and here is one of the best things I’ve seen there,When you declare a type, the CLR in runtime automatically rearrange the order of your type members for performance, so the access to these members are faster, and also trying…

0

C# 3.0 Lambda Expressions and Expression Trees

From the first days of C# 1.0 we could do stuff like this public static int Add(int x, int y){ return x + y;} and also C# gives you the ability to write the function signature in the form of delegate, that allows function pointers so you can do something like this delegate int MathOperation(int…

0

How to increase application scalability using Plugins

This time I will talk about how to implement a plugin module that loads and runs plugins in your application.but first why do we need such thing?In so many cases, you need to provide a way that enables someone else to write a piece of code that can be loaded in your application in runtime…

2