.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is a List<> ?And how to manipulate its items?

2 REPLIES 2
Reply
Message 1 of 3
waterharbin
281 Views, 2 Replies

What is a List<> ?And how to manipulate its items?

Hello,with the help of a matster of this forum,I meet List as container of my Point3ds.But I still not know how to manipulate its items.For example,If I want to get the second and the sixth items of this List,How can I do that?
2 REPLIES 2
Message 2 of 3
Irvin
in reply to: waterharbin

HI hello,

 

Please take a look a the following link.

 

http://msdn.microsoft.com/en-us/library/0ebtbkkc.aspx

 

Think this might help you with your problem.

 

Kind regards,

 

Irvin

Message 3 of 3
jeff
in reply to: Irvin

You can grab them using a index ListName[2] for example.

 

A quick dirty explaination is generic list are like templates.

 

 

The class List<T> will replace all occurences of T(which is a place holder) with Point3d in your example.

 

 

If you want to see the benefits research collections in the System.Collections like ArrayList and see how their methods use objects in thier parameters and must use boxing and unboxing.

You can also find your answers @ TheSwamp

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost