摘要:
public class Test { private volatile static Test instance; private Test() { } public static Test getInstance() { if (instance == null) { synchronized 阅读全文
摘要:
Action、Func、Predicate Action表示接受0个或者多个输入参数,执行一段代码,返回值为空 Func表示接受0额或多个输入,带返回值 private int AddFuncTest(int a, int b) { return a + b; } static void Main( 阅读全文