![]() |
![]() |
![]() |
C# Generics - now! I'm porting a fair amount of Delphi code to C#. The code doesn't make much use of libraries - it basically involves classes that define elaborate data structures. Is pretty ugly because of all the casting that needs to happen because Delphi doesn't have typed collections. I know, it does, sort of, but I just don't want to set up all that machinery.
Corporate Dork
System.Collections.Collectionbase.
Robert Jacobson
You can also use DictionaryBase (in the same namespace), to create dictionary-like behaviour.
Steve Jones (UK)
http://www.google.be/search?q=C%23+typed+collection+generator&ie=UTF-8&oe=UTF-8&hl=nl&meta=
Just me (Sir to you)
http://www.ericjsmith.net/codesmith/
Chris Nahr
I've converting collections from an old VB6 program to C#. After much googling, I found an article in The Code Project very useful for this.
Slartibartfast
A second for CodeSmith. Until there's generics in .NET, then generative coding is the only way to go for this kind of stuff.
Brad Wilson (dotnetguy.techieswithcats.com)
|