« Internationalization: Creating a custom culture | Main | Web 2.0 Bubble »

December 22, 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54ee5d547883300e5502ea4628834

Listed below are links to weblogs that reference Fun with Generics: Using constraints to limit Generics applicability using the 'where' keyword:

Comments

Julio César

Nice article!: concrete, practical and useful. Just what I was looking for...

Thanks a lot.

Moim Hossain

Good post. Basically, I have seen that we know these stuffs about generics but for some reason (!) we don't use practice them.
This blog post certainly give me a reminder next time while I will write code and there is a scope applying these beauty of generics.
Thanks!

NinjaCross

Well developed post.
Even if I use Generics from their early introduction, i really enjoyed reading this post :)

shaiju

Cool man. gr8. Thanks

test

How do we constrain a generic to a nullable type

private static bool ProcessNullableValue(object target) where T : Nullable

Use

Rita

Hi,
Thanks for this article. I found it very useful. As a beginner to generics, I found it a bit advanced. But yes, I did go through other articles before I went through this.

http://www.kanbal.com/index.php?/Net-Frame-Work/generics-in-net-20.html[^][^]

The above can be used if you are a begineer like me. Once you read the above, this article would be cake walk. Ofcourse this article would give a completeness to the understanding of generics.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Feeds

Pages