回复 老兵帅客 的帖子 - r% ]/ ^2 Z. m! D) u. P2 j" M) e3 J4 Y. \
在wikipedia上搜了一下reflection C++。 # h: ^' n0 D2 D
Qt/C++ ! x* U! [: u% g: W4 `, B5 P* W / F t- l2 D- H ^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.
/ Y$ b& X3 g* U2 M1 O貌似并不能直接支持,但是可以实现类似效果。 X8 w3 s# X' W8 B2 v5 [+ Y2 i# t* Vc++ reflection( Q1 I. h, g2 \% T4 L
回复 老兵帅客 的帖子$ d5 J# \6 S S
# k- z0 {9 q! K1 z( S
澄清一点,Linq和Linq to Sql不是同一个东西。! c2 l/ E2 m5 k* d# ~9 n4 \% o q
Linq是.NET引入的一种新的语言特性,是一种类似于sql的集合操作语法。Linq是个有意义的尝试,有了它对集合操作的coding效率大大提高了。Linq可以操作所有集合类型(例如System.Collections命名空间下的所有集合类),除了Linq to Sql之外,还有Linq to Xml, Linq to Dataset等等。 6 R. W7 u7 I Q$ s( f$ T6 }( C. N. |9 z1 d3 B
Linq to Sql是架构在Linq上的一层对数据库访问的支持。对数据库的访问还是通过API来做的。微软停止的是API的开发,Linq的语言特性是保留的。