Yesterday we had our Heroes Happen Here Launch Event in Sarasota, Florida. I presented the new language features in C# 3.0 as well as LINQ. It was rather cool to give this presentation, because a couple weeks earlier I was answering questions and showing demos on these same topics in The Learning Center at TechEd 2008 in Orlando.
There was a lot of material to cover in an hour, but we got through it all with good participation:
Object and Collection Initializers
Automatically Implemented Properties
Partial Methods
Implicitly Typed Local Variables
Anonymous Types
Extension Methods
Lambda Expressions and Closures
Query Expressions
For LINQ I showed several demos solving the same challenge using the various flavors of LINQ:
LINQ To Objects
LINQ To XML
LINQ To SQL
LINQ To DataSets
LINQ To Entities
ASP.NET Dynamic Data using LINQ To SQL
For those looking for resources on C# 3.0, I would first check out the C# Language Section on MSDN, which has links to the language specification, downloadable samples, keywords, etc. If you don’t have Visual Studio, you can download the Visual C# 2008 Express Edition for free.
For LINQ samples, check out the 101 LINQ Examples on MSDN.
If you are interested in books, I reviewed 4 that I really enjoyed and highly recommend on C# and LINQ:
If you are looking for bite-sized examples on C# 3.0, I put together a series of C# 3.0 Language Samples when I was learning the new C# 3.0 Language Features myself:
etc…
I created some LINQ To SQL Tutorials as well. As I mentioned at the presentation, check out Ian Cooper’s LINQ To SQL Series. Matt Warren has a great series of articles on building an IQueryable Provider for insight on how LINQ to SQL works.
Thanks to everyone who attended the Heroes Happen Here Event in Sarasota.
And a great presentation it was David – thank you !