C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-09-2002, 11:45 PM   #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 ?
ginoitalo is offline   Reply With Quote
Old 05-09-2002, 11:48 PM   #2
the hat of redundancy hat
 
nvoigt's Avatar
 
Join Date: Aug 2001
Location: Hannover, Germany
Posts: 2,769
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.
nvoigt is offline   Reply With Quote
Old 05-09-2002, 11:53 PM   #3
Something Clever
 
ginoitalo's Avatar
 
Join Date: Dec 2001
Posts: 187
Better iterating overall...
list::end(),
list::front(),
list::push_front()
ginoitalo is offline   Reply With Quote
Old 05-24-2002, 11:10 PM   #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 ?
ginoitalo is offline   Reply With Quote
Old 05-25-2002, 05:51 AM   #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?
Sorensen is offline   Reply With Quote
Old 05-25-2002, 10:29 PM   #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 ?
ginoitalo is offline   Reply With Quote
Old 05-27-2002, 11:56 AM   #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.
Sorensen is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22