Article updated: generics in C# 2.0

L

ludwig.stuyck

Hello,

I updated my article on generics with databinding and serialization/
deserialization.

Summary: Generics are one of the most useful improvements in the .NET
2.0 framework. In this article I start with pointing out the
disadvantages of using the classical arrays and .NET collections, and
then I show you how generics provide a nice and elegant way of
creating flexible and performant strongly typed collections with
sorting capabilities. I also explain the use of predicates to
implement custom behavior, and how you can create your own generic
classes. Along the way constraints, generic methods, properties and
interfaces are explained. Finally I demonstrate how you can data bind
a generic collection to a DataGridView control and how to serialize/
deserialize the collection.

The article in pdf format and all source code is available for
download here: http://coders-lab.dnn-portal.com/Default.aspx?tabid=16942.

I don't have it available in html format yet, if anyone has a tool to
convert a word document to html, please let me know!

All other feedback is also appreciated!

Kind regards,
Ludwig Stuyck
 
S

sloan

Great Stuff Ludwig ,

Thanks.......for the original article and the update.

Its definately my "go to" source for working with generics.

Sloan
 
M

Mattias Sjögren

I don't have it available in html format yet, if anyone has a tool to
convert a word document to html, please let me know!

Other than File, Save As... and chosing HTML format? Sure, the
resulting HTML looks terrible and might not render correctly in all
browsers, but it's worth a try.


Mattias
 
R

Ram

Other than File, Save As... and chosing HTML format? Sure, the
resulting HTML looks terrible and might not render correctly in all
browsers, but it's worth a try.

Mattias

Great work Ludwig...Keep posting many such useful articles..

Thanks and Regards,
Ram
 
D

Dan Soendergaard

Hello,

I updated my article on generics with databinding and serialization/
deserialization.

Summary: Generics are one of the most useful improvements in the .NET
2.0 framework. In this article I start with pointing out the
disadvantages of using the classical arrays and .NET collections, and
then I show you how generics provide a nice and elegant way of
creating flexible and performant strongly typed collections with
sorting capabilities. I also explain the use of predicates to
implement custom behavior, and how you can create your own generic
classes. Along the way constraints, generic methods, properties and
interfaces are explained. Finally I demonstrate how you can data bind
a generic collection to a DataGridView control and how to serialize/
deserialize the collection.

The article in pdf format and all source code is available for
download here:http://coders-lab.dnn-portal.com/Default.aspx?tabid=16942.

I don't have it available in html format yet, if anyone has a tool to
convert a word document to html, please let me know!

All other feedback is also appreciated!

Kind regards,
Ludwig Stuyck

Really great article, Ludwig!
It's the first time I really understood how generics can be used. You
should get a blog and post your articles there!

- Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top