public static ERR_LOG dErrLog; //报错处理函数指针 public Log(TRACE_LOG funcTrace, ERR_LOG funcErr) //构造函数 传入的是函数指针 { dTraceLog = funcTrace; //赋值 dErrLog = funcErr; }
public Log(TRACE_LOG funcTrace, ERR_LOG funcErr) { dTraceLog = funcTrace; dErrLog = funcErr; }