C# and iOS Programming
Tips, tricks, snipplets, code examples
Friday, January 15, 2010
Anonymous methods in C#
static void AddUniqe(Item item, List
list)
{
int offs = list.FindIndex(delegate(Item i) { return i.id == item.id; });
if (offs >= 0)
list[offs] = item;
else
list.Add(item);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment