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
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