tags:

views:

74

answers:

2

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.

+8  A: 

I believe you're looking for the Action<T> family of delegate types.

Adam Maras
+9  A: 

Action<T> - "Encapsulates a method that takes a single parameter and does not return a value"

Jon Erickson