private delegate int delStepDoSomething(object obj=null);
private static Dictionary<int , delStepDoSomething> stepDoSomething = new Dictionary<int , delStepDoSomething>();
private static Dictionary<int, Func<object,int>> stepDoSomething = new Dictionary<int,Func<object, int>>();
1.注意,上面2中方式的委托。都可以与字典绑定
2.Func作为委托,其参数没办法,给默认值。
标签:委托,Dictionary,C#,private,int,static,字典 From: https://www.cnblogs.com/buukma/p/17297658.html