Autor Beitrag
en!gma
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 378

win xp
delphi 7.0
BeitragVerfasst: Mi 20.08.08 13:39 
hiho nochmal.
hoffentlich wieder eine so schnell beantwortete frage wie vorhin ;)

also ich möchte eine arraylist nur mit bestimmten objekten.


wenn ich es mit:

ausblenden C#-Quelltext
1:
 ArrayList<meinObject> einArray = new ArrayList<meinObject>();					


versuche, wird mir gesagt:

Fehler 1 Typ "System.Collections.ArrayList" ist nicht generisch und kann daher nicht mit Typargumenten verwendet werden.

irgendwelche vorschläge das problem zu lösen? :/

Moderiert von user profile iconChristian S.: C#-Tags hinzugefügt
lothi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 114
Erhaltene Danke: 3



BeitragVerfasst: Mi 20.08.08 13:46 
Hallo en!gma

Dafür gibs ab 2.0 List<T>.

Gruss lothi
en!gma Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 378

win xp
delphi 7.0
BeitragVerfasst: Mi 20.08.08 13:49 
ah stumpf das sollte schon reichen.
ab hier finde ich den rest schon alleine heraus
thx a lot