摘要:
与vb.net中case可以写比较表达式>,<,=等,但在c# (3.0及以下,不知道以后会不会加上)中就没有这样的功能看以下vb.net代码,确是c#的switch case没有的[vb]view plaincopyprint?SelectCaseDateDiff(DateInterval.Minute,dtLineStart,dtTmpStart)CaseIs<-60lngTmpQTY=0CaseIs<0intTmpSec=DateDiff(DateInterval.Second,dtLineStart,dtTmpEnd)IfintTmpSec>0Thenln 阅读全文