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

前端 未结 10 1385
自闭症患者
自闭症患者 2020-11-29 01:59

I\'m looking for a key/value pair object that I can include in a web service.

I tried using .NET\'s System.Collections.Generic.KeyValuePair<> class, but it doe

10条回答
  •  暖寄归人
    2020-11-29 02:56

    You can use Tuple

    see this for more details on Tuple usage : Working with Tuple in C# 4.0

提交回复
热议问题