Enum.HasFlag – where have you been all my life?

August 24, 2010

If you’ve ever used enumerations in .NET with bitwise operations, using the Flags attribute, you should be familiar with the following piece of code: enum Permission{  None = 0,  Read = 1,  Edit = 2,  Delete = 4,  ChangePermission = 8,  FullControl = Read | Edit | Delete | ChangePermission} Permission permission = Permission.Read | Permission.Edit; if ((permission & Permission.Delete) == Permission.Delete)  Console.WriteLine("Has permissions"); In .NET 4, a new method was introduced in order to relieve yourself from this ugly...
one comment

Reminiscing the creation of the WCF 4 MOC

August 23, 2010

It is finally over ! no more changes, no more bug fixes, no more uploads, the final version of the WCF 4 official Microsoft course is finally here. I can’t even fix a small typo I found in one of the chapters. It is not my intention to complain about what I’ve gone through in the last eight months, but rather reminisce the last year of my life, like you reminisce going to boot camp (“Tironut”). We started preparing for this course during November of last year, around the time of the PDC. Little did...

WCF 4 – Microsoft’s official course in Israel for the first time

August 11, 2010

Recently, I had the pleasure of passing the first Microsoft’s official WCF 4 course in Israel in its beta version (the course hasn’t been officially released yet). The course, developed by several of Sela’s experts in the past seven months, is part of the new set of courses Microsoft offers for .NET 4 and Visual Studio 2010. It was a bit strange to give a course I’ve spend the last couple of months writing, but I enjoyed it very much, and the crowd (21 people) was great and asked a lot of interesting questions. We (the...

Different culture settings between IIS and ASP.NET’s Development Server

August 5, 2010

A few years ago I’ve stumbled on a very annoying scenario on my machine: I had used ASP.NET’s development server (the web server that pops up when debugging web applications in Visual Studio) while developing a web application and when I moved my web application to my local IIS, suddenly the culture of the thread changed from my local culture (he-IL) to a Greek culture (el-GR). This was a few years ago, and took some time to solve, and I though I had the unfortunate luck of being the owner of a weird...