Generic.List

  • Thread starter Thread starter shapper
  • Start date Start date
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
 
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)
 
Back
Top