回复 老兵帅客 的帖子" f5 b: l T3 _# A
# K5 i9 c, c1 y+ B9 X) j
在wikipedia上搜了一下reflection C++。9 n0 c0 H9 S% @5 p1 w- A+ B
Qt/C++ - q( T1 ]/ N/ J2 j) M 8 x* h7 u4 H& u0 G4 HQt 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.
C1 e* s$ }6 {/ @9 [貌似并不能直接支持,但是可以实现类似效果。 2 g9 F1 @0 r! oc++ reflection ; b' @2 T/ {3 {5 U# T9 i" Y5 A2 ?! O
回复 老兵帅客 的帖子1 ^( N) \ V0 P& P Q# W( E
: `& L# R- k% M4 O
澄清一点,Linq和Linq to Sql不是同一个东西。; A1 N% @+ F ?% H- F0 w
Linq是.NET引入的一种新的语言特性,是一种类似于sql的集合操作语法。Linq是个有意义的尝试,有了它对集合操作的coding效率大大提高了。Linq可以操作所有集合类型(例如System.Collections命名空间下的所有集合类),除了Linq to Sql之外,还有Linq to Xml, Linq to Dataset等等。! A) |! O9 s! z" u
; ]- t5 X. N' Q: w' v+ E2 K
Linq to Sql是架构在Linq上的一层对数据库访问的支持。对数据库的访问还是通过API来做的。微软停止的是API的开发,Linq的语言特性是保留的。