Jonas Stawski

Everything .NET and More

Visual Studio 2008 and .NET Framework 3.5 Service Pack 1

Both the Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 are now available for download here and here respectively. They are really not a normal Service Pack as they not only fix bugs, but they also add a lot of new features that are not rel... [More]

Generic IsNull Helper Method

When you use DataReaders you have to check for DBNull.Value on every field that could have a possible null value to make sure you don't get an exception. Therefore your code ends up having a lot of these: if (dr["Colunm1"] != DBNull.Value) ... [More]

Using Brackets with StringBuilder AppendFormat

I was in need of using some brackets with the AppendFormat of the StringBuilder class, but the brackets are a special character for the AppendFormat. The function uses the brackets to indicate variable placement. So in the code below the {0} will be ... [More]


This is more of a "mental" note for me than anything else, but I would like to share it with everyone as well. The DateTime.ToString method has 2 overloads, one with no parameters and the other with a string parameter. I would like to talk about the ... [More]

Visual Studio 2008, SQL Server 2008, Windows Server 2008 Mini-Launch in Miramar

Have you missed the Heroes Happen Here event in Ft Lauderdale? Do you want to revisit some of the topics? Then don't miss today's Mini-Launch at Devry University in Miramar. I will be showcasing the demos from the "Reach End-Users with Next Generatio... [More]

Behavior of Default Constructors and Base Classes

A client of mine requires us to use ReSharper. I usually don't like to use any of those tools because if I get used to then and I go crazy when I do not have them, but I think I will give ReSharper a chance at my own dev machine. One of the cool feat... [More]

Installing the Entity Framework with Visual Studio 2008 RTM

If you are interested in the Entity Framework like I am you will not find the installation process very straight forward. I started searching for the Entity Framework (EF) and I was receiving links to pages containing Tools, Designers, Frameworks wit... [More]

Container.DataItem. What exactly is this?

Recently I had to bind to an array of strings and I wasn't sure how to show the value of the current item. After a little bit of help from the DevTheo and a little bit of thinking I figured out the solution was very simple. All i had to do was bind i... [More]

Traveling Through Time: from Delegates to Anonymous Methods to Lambda Expressions

We are very close to the release (February 2008) of Visual Studio 2008 and .NET 3.5 which will include both C# 3.0 and VB 9.0. Now we can look back in time and see where the .NET framework has taken us. Delegates In .NET 1.x we were introduced to d... [More]

Sample Repository Posted

For those of you interested in downloading the code for last night's Code Idol session: "Using SQL Server 2005 as a Document Repository" you can do so here. For more details on the code you can also read my previous post on the topic here. The demo ... [More]