Is there a serializable generic Key/Value pair class in .NET?

Just define a struct/class.

[Serializable]
public struct KeyValuePair<K,V>
{
  public K Key {get;set;}
  public V Value {get;set;}
}

Leave a Comment