other way to add item do 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 21:53 UTC
Read the original article Hit count: 357

Filed under:
|
|

In my other ask 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#