Type Inference, Anonymous types and Lambda Expressions

C# comments suggest edit

This is the second of posts about the new features in C# 3.0. You can read the first post here. Well this was long overdue, but anyway, here it is.

Type Inference

When we are using type inference which was introduced in C# 3.0, the compiler determines the type of the variable at compile time. Here is an example of type inference.


VistaDB Providers

Its been a long time since I have made any posts on this blog. I am very busy these days and its been very hard to find time. To continue with the post, I was looking at alternate providers for this site and I ran into VistaDB . Its a fully managed file based SQL engine. What got me interested is it has a free express edition and it supports SProcs :) . I will provide the full source for the site once I develop it. For starters I wanted a provider API for VistaDB with membership, roles and profile management.  Well I got membership and roles from the forum I guess ( I don’t remember ) , and added a profile provider to it. Its not perfect and you might find a lot of bugs.

You can download the source for it from here. It has the full source code for the providers and a sample website.

Any sort of feedback is appreciated.


Automatic Properties and Object Initializers

C# comments suggest edit

Automatic Properties

In this post we will look at some of the new features added in C# 3.0. The first of these will be automatic properties. Automatic properties gives us with a shorthand notation for defining a new property.


Source Code made Open Source

MPS comments suggest edit

I am now sharing the source code to this site under the Creative Commons License Distribution.

The terms and conditions can be read here . As always the code can be found here.

Happy Coding.


Site Source Available for Download

MPS comments suggest edit

The source code for this is site is available for download from here.

Here is a list of features that i have implemented.

  1. 3 layered architecture.
  2. MetaWeBlog implementation (Partial) [Have tested with BlogJet].
  3. Provider based design - Pluggable providers [Includes SqlProvider].
  4. File system based Image gallery.
  5. Guestbook.
  7. Complete administration of site.
  8. RSS feeds
  9. Technorati ping.
  10. Caching features for performance.