共用方式為


NSComparator 代理人

定義

委派,定義要與 functins 搭配使用的比較函式,例如 Sort(NSComparator)

public delegate Foundation.NSComparisonResult NSComparator(NSObject obj1, NSObject obj2);
type NSComparator = delegate of NSObject * NSObject -> NSComparisonResult

參數

obj1
NSObject
obj2
NSObject

傳回值

適用於