Ray's playground

 

2011年1月12日

Item 6: Understand the Relationships Among the Many Different Concepts of Equality(Effective C#)

摘要: C# gives you numerous ways to test equality, but you need to consider providingyour own definitions for only two of them, along with supporting theanalogous interfaces. You never override the static Object.ReferenceEquals()and static Object.Equals() because they provide the correct tests, regardless 阅读全文

posted @ 2011-01-12 21:23 Ray Z 阅读(241) 评论(0) 推荐(0)

Target/Action(Chapter 5 of Cocoa Programming for Mac OS X)

摘要: AppController.hCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#importFoundation/Foundation.h234@interfaceAppController:NSObject5{6IBOutletNSTextField*textField;7NSSpeechSynthesizer*speechSynth;8}910-(IBAction)sayIt:(id)sender;11-(IBAction)stopIt: 阅读全文

posted @ 2011-01-12 09:18 Ray Z 阅读(224) 评论(0) 推荐(0)

导航