Func, and predicates are a great addition to C#, and most developers are pretty familiar with them at this point. What developers might not know, is that you can chain them together the same way you could chain events. Take a look at this example.
public class Program
public static void Main()
Action Hello = () => Console.WriteLine("Hello:");
Hello += () => Console.WriteLine(" World");
Hello += () => Console.WriteLine(" .NET");
Hello += () => Console.WriteLine(" Khalid");
When executed, the code produces the following output:
Give it a try here : https://dotnetfiddle.net/GvxsXG
Thanks to developers on Twitter for informing me of this feature.
Software Developer and All Around Nice Guy