Ray's playground

 

2011年2月26日

Memory Management(Chapter 3 of Objective-C Phrasebook)

摘要: When you send an object an -autoreleasemessage, it is added to the currently activeNSAutoreleasePool instance. When thisinstance is destroyed, every object added to itis sent a -release message.The -autorelease message is a deferred-release message. You send it to an objectwhen you no longer need a. 阅读全文

posted @ 2011-02-26 21:52 Ray Z 阅读(200) 评论(0) 推荐(0) 编辑

Item 40: Use Dynamic for Parameters That Receive Anonymous Types(Effective C#)

摘要: You can leverage dynamic to create methods that are intended to be usedwith anonymous types. It’s a technique to be used sparingly, like strongspices. If you find yourself creating many methods using dynamic invocationthat are intended for use with anonymous types, that’s a strong indicationthat yo. 阅读全文

posted @ 2011-02-26 10:38 Ray Z 阅读(193) 评论(0) 推荐(0) 编辑

导航