- Y* p1 e1 |" Z( L9 H z# h在wikipedia上搜了一下reflection C++。. _. Y& R" v) }% t
Qt/C++ / l' J1 C/ j r1 ^* Q+ R * F$ A+ y) \8 d( Q w( k+ xQt 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.
* w! J. k+ A3 \9 e8 P7 }8 D貌似并不能直接支持,但是可以实现类似效果。0 M. n/ _# z# l$ ^. ] c++ reflection- u9 F# r1 _# ~% i5 [4 W: d: b
回复 老兵帅客 的帖子7 b% R4 G9 C+ P {8 t$ D' f2 |
( x6 h' K9 M3 B. H+ x
澄清一点,Linq和Linq to Sql不是同一个东西。3 ]0 r8 [0 K' f) Q. f: Z
Linq是.NET引入的一种新的语言特性,是一种类似于sql的集合操作语法。Linq是个有意义的尝试,有了它对集合操作的coding效率大大提高了。Linq可以操作所有集合类型(例如System.Collections命名空间下的所有集合类),除了Linq to Sql之外,还有Linq to Xml, Linq to Dataset等等。 S1 a4 ]8 i" Z1 K