Can you explain me code below :
private static List<Post> _Posts;
public static Post GetPost(Guid id)
{
return _Posts.Find(delegate(Post p)
{
return p.Id == id;
});
}
What is the point to find an object in a generic list by that way ? He can simply iterate the list.
How this delegated method called for each element of list ?
NOTE : if this has a common name, can you update my question's title ?
Thanks !