Author Topic: using linq with TNet  (Read 2174 times)

addebooi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
using linq with TNet
« on: October 11, 2013, 05:16:09 PM »
I came up with a problem here. i want to use a Linq allgorithm to find a specifik item in a Tnet list. But apparently Linq don't support the Tnet list.. How do i come by this?
If there is no way for coming by this: how do i make a similiar for list.find(x=>x.item == item)? or something like that
« Last Edit: October 11, 2013, 07:38:44 PM by addebooi »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: using linq with TNet
« Reply #1 on: October 12, 2013, 09:10:01 AM »
TNet uses a custom list designed to minimize allocations / garbage collection. You'd need to use a delegate or function instead of linq.