回复 老兵帅客 的帖子 $ w) J8 `7 Z' H9 q# ~6 N - B {+ W* a) l4 X; |在wikipedia上搜了一下reflection C++。 ; i7 c. X3 }6 o; ]8 E
Qt/C++- R) A' M# l+ e6 M- {: U9 V
( s0 a4 R3 Z5 y* jQt 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.
. i- s* S) k% I! }; c' k3 F貌似并不能直接支持,但是可以实现类似效果。$ _' ]& D/ T+ s8 ~: y* I: \ c++ reflection 2 r, ~) Q; L; L
回复 老兵帅客 的帖子 ; n9 f! b. h- z+ s, U2 Y, X / p n# N0 M, x0 a澄清一点,Linq和Linq to Sql不是同一个东西。 8 q5 e; j1 K" }& b& c: HLinq是.NET引入的一种新的语言特性,是一种类似于sql的集合操作语法。Linq是个有意义的尝试,有了它对集合操作的coding效率大大提高了。Linq可以操作所有集合类型(例如System.Collections命名空间下的所有集合类),除了Linq to Sql之外,还有Linq to Xml, Linq to Dataset等等。 5 S, }! ~; @: `' n& f% y) T4 W; d( o1 m- R. x- R" }* U8 Y7 L
Linq to Sql是架构在Linq上的一层对数据库访问的支持。对数据库的访问还是通过API来做的。微软停止的是API的开发,Linq的语言特性是保留的。