17 בספטמבר 2007
Visual studio Orcas and C# 3.0 introduce some very cool features. Recently I have been working on several posts that talk about those new features. I recommend you all to review them: Extension Methods. Automated Properties. In this post I will be discussing on yet another cool feature: Lambda Expressions. Overview C# 2.0 introduced a new feature, anonymous methods, that allows you to declare your method code inline instead of with a delegate function: FileSystemWatcher watcher = new FileSystemWatcher(@"c:\");
15 בספטמבר 2007
Extension methods is a new feature introduced by Orcas. As the name implies, the idea behind the extension method is to extend existing types with new methods.
Creating an extension method is fairly simple. For example, lets say that for each string type, you would like to add a new method that will convert white spaces into underscores: public static string SpaceToUnderscore(this string source)
char cArray = source.ToCharArray();
12 בספטמבר 2007
Visual Studio 2008 introduces a host of new features and enhancements that dramatically improve the experience of software developers. You can all attend this 8-part Web seminar series and learn about the next generation development environment for the Microsoft Windows platform & exciting new technologies coming in Visual Studio 2008. You can find the seminars here.
5 בספטמבר 2007
Lately I have been working on a design for a web application. For that application I was going to use .NET 3.5 features, which includes WCF, Linq, XLinq, Linq to Sql and WF. My Data layer had to reside on a windows service which exposes WCF services. One requirement I had to implement was a fail over scenario. In other words a load balancer that can redirect requests to an active data layer. For example: lets say I installed three data layers (each one is a windows service), and there are ten clients that addresses those data layers. Suddenly, one of my data...
2 בספטמבר 2007
In Visual Studio Orcas we get a new feature named "automated properties". Shortly put, instead of writing:private string _firstName;
public string FirstName
_firstName = value;