回复 老兵帅客 的帖子5 g$ J# o; b7 ~5 v, s. t
% m7 H; x# @8 x: A& U6 d
在wikipedia上搜了一下reflection C++。 , |) K! V" c4 g0 T' d
Qt/C++6 \8 \2 N. ~2 N; o; w3 C
. m2 g/ K8 Y0 r" }9 B% YQt 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.
/ ^+ o& J9 E5 f貌似并不能直接支持,但是可以实现类似效果。 : t( h9 F4 a1 Vc++ reflection 4 O B# S; X2 u: Q2 G! b1 V s
回复 老兵帅客 的帖子 9 }2 Q7 k) {" c' N. n" r4 W8 X$ k7 e1 D. }. f. Y
澄清一点,Linq和Linq to Sql不是同一个东西。 7 f" b q" h/ Y& W/ GLinq是.NET引入的一种新的语言特性,是一种类似于sql的集合操作语法。Linq是个有意义的尝试,有了它对集合操作的coding效率大大提高了。Linq可以操作所有集合类型(例如System.Collections命名空间下的所有集合类),除了Linq to Sql之外,还有Linq to Xml, Linq to Dataset等等。 3 w9 O9 I. `8 G 7 R- L5 e/ v7 T3 w: E/ zLinq to Sql是架构在Linq上的一层对数据库访问的支持。对数据库的访问还是通过API来做的。微软停止的是API的开发,Linq的语言特性是保留的。