MonoTouch 辞書の制限について非常に混乱しています: http://docs.xamarin.com/ios/about/limitations#Value_types_as_Dictionary_Keys
このようなコードは許可されていないという私の理解:
var foo = new Dictionary<int, int>();
しかし、私は本に次のようなコードを目にしますが、これは意味がありません。
protected Dictionary<int, CustomCellController> _cellControllers = new Dictionary<int, CustomCellController>();
また、null 許容型を使用すると、値が参照に変換されるため、次のように機能することが投稿されました (キーが null でない限り)。
var foo = new Dictionary<int?, int?>();
null許容型は値型である構造体であるため、これも意味がありません。
では、デバイスで辞書を使用する場合の実際のルールは何ですか?