other way to add item to List<>

Posted by netmajor on Stack Overflow See other posts from Stack Overflow or by netmajor
Published on 2010-03-24T21:50:51Z Indexed on 2010/03/24 22:03 UTC
Read the original article Hit count: 340

Filed under:
|
|

In my other question You can see code of my arr structure and PriorityQueue collection. I normally add items to this collection like that:

arr.PriorityQueue.Add(new element((value(item, endPoint) + value(startPoint, item)),item));

I am curious that is other way to do this (add element(which is struct) object to List) ? In lambda way for example ? I just eager for knowledge :)

© Stack Overflow or respective owner

Related posts about list

Related posts about c#