.NET 4.0 has a built-in delegation method:
public delegate TResult Func<in T, out TResult>(T arg);
It is used in LINQ extension methods, for example:
IEnumerable<TSource> Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate);
I clearly don't understand the Func delegate why the following lambda expression matches it:
// p is a XElement object p=>p.Element("firstname").Value.StartsWith("Q")
Leo vo
source share