Thread: System.Collections

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187

    System.Collections

    I must say, working with the Systems.Collections
    namespace has been a let down.

    I have been using it with WinForms (GUI).
    ( Creating a Form with VS.NET and C# is excellent )


    Is there a way to "properly" use C++'s std::list in C# apps ?
    or can you use them in C# apps ?

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Haven't tried it yet, but what do you miss in the lists provided in System.Collections ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    Better iterating overall...
    list::end(),
    list::front(),
    list::push_front()

  4. #4
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187

    A Little Tougher...

    Does anyone know how to add member functions
    to an existing class, like ArrayList ?

  5. #5
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    Something like -

    Code:
    class myArrayList :ArrayList
    {	
    	public void new_mem_fun()
    	{
    		//Some functionality
    	}
    	
    
    }
    Is this what you mean?

  6. #6
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187
    So instead of adding to the existing class, your essentially making a copy of it (inheriting it) and adding to your copy.

    Would that be an accurate description ?

  7. #7
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >Would that be an accurate description ?

    Yes, the inherited class is contained within the derived one.

Popular pages Recent additions subscribe to a feed