Qt/C++/ h" B; m2 O: \- V
; E; A: F7 Y6 o+ U9 i8 n
Qt framework extends C++ with its meta-language and provides reflection ability of member/method reference and query by name for Qt objects with QMetaObject class, which contains meta-information about the Qt objects.
Objective-C is a reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.
E3 q* y/ V0 [0 q( m- y4 w+ a
貌似并不能直接支持,但是可以实现类似效果。& M( ^+ B+ |3 K c++ reflection ! I+ f" q/ r) ]; i
回复 老兵帅客 的帖子( `- `1 y4 @- B. N
5 K- {+ g1 W/ u7 o
澄清一点,Linq和Linq to Sql不是同一个东西。, X: X5 W; b; Y4 Y" q0 j/ r
Linq是.NET引入的一种新的语言特性,是一种类似于sql的集合操作语法。Linq是个有意义的尝试,有了它对集合操作的coding效率大大提高了。Linq可以操作所有集合类型(例如System.Collections命名空间下的所有集合类),除了Linq to Sql之外,还有Linq to Xml, Linq to Dataset等等。 ! v$ i& Q0 h- {* E, {( g# K: u+ q( n n+ |, ~
Linq to Sql是架构在Linq上的一层对数据库访问的支持。对数据库的访问还是通过API来做的。微软停止的是API的开发,Linq的语言特性是保留的。