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

Top