Jan 9, 2012

[How to] Function Array (Delegate)

using System;


case: void funcs(void)
Action[] func = {func1, func2, func3, ...};


case: void funcs(int)
Action<int> func = {func1, func2, func3, ...};


case: bool funcs(void)
Func<bool> func = {func1, func2, func3, ...};


Refer to all of the overloaded constructor of Action and Func.

No comments:

Post a Comment