Generic.List

S

shapper

Hello,

I have a variable which is of type Generic.List(Of MyClass)

I want to get only the first 5 items added by the user. How can I do
this?

Thanks,
Miguel
 
N

Niels Ull

Hello,
I have a variable which is of type Generic.List(Of MyClass)

I want to get only the first 5 items added by the user. How can I do
this?

Use the GetRange method, e.g.

myList.GetRange(0,5)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Generic.List 1
CheckBox 1
String 3
Property. 3
Property. Which one should I use? 3
Array 1
Generic.List. Is this possible? 2
String and Class 3

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top