title: How to get listBox selected item as KeyValuePair<string, string> in C#?
body: <p><code>ListBox</code> object is binded with <code>BindingList&lt;KeyValuePair&lt;string, string&gt;&gt;</code></p>
  
  <p>On SelectionChanged event I need to get selected item as <code>KeyValuePair&lt;string, string&gt;</code></p>
  
  <p>Following code gives error because KeyValuePair can't be used as reference type.</p>
  
  <pre><code>KeyValuePair&lt;string, string&gt; selectedProperty = listProperties.SelectedItem as KeyValuePair&lt;string, string&gt;;
  </code></pre>
  
  <p>What is good work-around for this?</p>