Re: Dynamic array with strong types?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Stoitcho Goutsev \(100\) [C# MVP] (100_at_100.com)
Date: 11/05/04


Date: Fri, 5 Nov 2004 15:21:59 -0500

You want strongy typed collection, right? Inheriting form ArrayList doesn't
give you that.

-- 
Stoitcho Goutsev (100) [C# MVP]
"Vincent Finn" <1@2.com> wrote in message 
news:jf9no0d40cou6advpkdk8g6bjftdl7i56v@4ax.com...
> On Fri, 5 Nov 2004 09:00:20 -0500, "Stoitcho Goutsev \(100\) [C# MVP]"
> <100@100.com> wrote:
>
>>Until then CollectionBase is the easiest way
>
> Is there an advatage in Deriving from CollectionBase rather than
> ArrayList?
>
> If I derive from ArrayList I simply implement a 'new' indexer
> deriving from CollectionBase leaves me having to implement everything
> the implmentations are trivial but still a lot more code
>
> Vin 


Relevant Pages

  • Re: Dynamic array with strong types?
    ... CollectionBase in order to get not strongly typed indexer you need to cast ... > I think I'll go the quick route of simply deriving from ArrayList to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Dynamic array with strong types?
    ... Is there an advatage in Deriving from CollectionBase rather than ... If I derive from ArrayList I simply implement a 'new' indexer ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Dynamic array with strong types?
    ... >wrapper at: ... You went the route of deriving from CollectionBase to make it fully ... I think I'll go the quick route of simply deriving from ArrayList to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Why no StackBase?
    ... CollectionBase for a Stack, you just have to change the logic for accessing ... Nicholas Paldino [.NET/C# MVP] ...
    (microsoft.public.dotnet.languages.csharp)