Func<> is very convenient in .NET. Is there a way i can specify the param type and have the result value as void? I'd like to pass void Write(string) as a parameter.
views:
74answers:
2
+8
A:
I believe you're looking for the Action<T> family of delegate types.
Adam Maras
2010-02-24 00:25:23
+9
A:
Action<T> - "Encapsulates a method that takes a single parameter and does not return a value"
Jon Erickson
2010-02-24 00:25:38