摘要:
Predicate 泛型委托表示定义一组条件并确定指定对象是否符合这些条件的方法。此委托由Array和List类的几种方法使用,用于在集合中搜索元素。看看下面它的定义://Summary://Representsthemethodthatdefinesasetofcriteriaanddetermineswhether//thespecifiedobjectmeetsthosecriteria.////Parameters://obj://Theobjecttocompareagainstthecriteriadefinedwithinthemethodrepresented//bythisd 阅读全文
posted @ 2012-08-29 23:29
Danny Chen
阅读(626)
评论(0)
推荐(0)
摘要:
.net的一个很重要的特性就是跨语言的编程,用C#写的dll可以在VB.net里调用,例如:用C#写的一个类,编译到dll中,然后在VB.net中调用:usingSystem;namespaceCLSsample{publicclassCLSTest{publicCLSTest(){}publicvoidABC(){Console.WriteLine("ABC");}}}在VB.net中调用:DimcAsCLSsample.CLSTest =NewCLSsample.CLSTestc.ABC()现在给dll中的CLSTest类加一个函数:public voidabc(){C 阅读全文
posted @ 2012-08-29 17:12
Danny Chen
阅读(3187)
评论(0)
推荐(1)

浙公网安备 33010602011771号