摘要:
今天一朋友问到一问题,怎么在timer的委托里面传参数,我初一想Invoke可以传参数吧,我就说了。 后来他说这个委托是微软定义,不能变参数,于是我就自己写了一段代码试试. 我最初写的代码如下 public class A { public string p = string.Empty; public void foo(object sender, System.Timers.ElapsedEventArgs e) { B.foo(p); } } 然后在循环里 为A的对象传参数 ... 阅读全文
摘要:
在数据库里经常会遇到空处理下面是一些处理空字符的东西sqlserver>isnull(a,b); a为NULL 返回b ,a不为NULL返回a>coalease(exp [,..n])实现case when(exp1 is not null) then exp1when (exp2 is not null) then exp2...else expnend即 coalease(exp1,exp2,exp3..expn)>nullif(exp1,exp2) 相等返回null,不相等返回exp1mysql --ifnull(a,b) 同 mssql isnull()access- 阅读全文