Tag Archives: C#

SimpleBuild

I’ve been refreshing my skills in C++ recently. It’s been ten years since I coded anything serious in that environment and the gaps are readily apparent. Nonetheless I’ve been working through examples in the book I bought and the knowledge … Continue reading

Posted in Technology, Uncategorized | Tagged , , | Leave a comment

New Array of Anonymous Objects

While coding up a couple of prototype LINQ queries this morning I came across a rather interesting syntax using anonymous types and object initializers.  I wanted to show an example of using a where clause upon a property of an … Continue reading

Posted in Technology, Uncategorized | Tagged , | Leave a comment

Expressions, Delegates, and Lambdas, Oh My!

C# 3.0 heralded a new era of syntax candy that was introduced in a large part to support LINQ.  The new syntax also brings expanded freedom of expression for developers, however by increasing the number of ways in which similar intentions … Continue reading

Posted in Technology, Uncategorized | Tagged , , | Leave a comment

Yield – Enumeration candy

As we all know, I’m a little slow on the uptake.  This time I managed to miss a really great keyword in C#: yield.  The combination yield return is a lovely piece of C# candy that can be used to simplify a … Continue reading

Posted in Technology, Uncategorized | Tagged , , | Leave a comment

Count > 0 vs Count != 0

I came across an issue today that I think perfectly exhibits the principal of forward thinking in coding.  Consider the following block of code: IList<MyObject> myList = myAdapter.Read(); if (myList.Count != 0) { … do some work … } The if … Continue reading

Posted in Technology, Uncategorized | Tagged | Leave a comment

The ObjectDataSource Web Control

There exists a wide variety of ways in which data for a web page can be retrieved from a data store. One of the ways introduced in ASP.NET 2.0 involves using the ObjectDataSource control. This article discusses the ObjectDataSource control … Continue reading

Posted in ASP.NET, WebControls | Tagged , , , | Leave a comment