ListBox
オブジェクトはとバインドされていますBindingList<KeyValuePair<string, string>>
SelectionChangedイベントで、選択したアイテムを次のように取得する必要がありますKeyValuePair<string, string>
KeyValuePairは参照型として使用できないため、次のコードはエラーになります。
KeyValuePair<string, string> selectedProperty = listProperties.SelectedItem as KeyValuePair<string, string>;
これに対する適切な回避策は何ですか?