Article updated: generics in C# 2.0

  • Thread starter Thread starter ludwig.stuyck
  • Start date Start date
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
 
Great Stuff Ludwig ,

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

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

Sloan
 
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
 
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
 
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
 
Back
Top