Equivalent of Tuple (.NET 4) for .NET Framework 3.5

后端 未结 6 1875
我在风中等你
我在风中等你 2020-11-29 04:05

Is there a class existing in .NET Framework 3.5 that would be equivalent to the .NET 4 Tuple?

I would like to use it in order to return several values from a method,

6条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 05:07

    Yes, there is a class called System.Collections.Generic.KeyValuePair that does the same thing (since .NET 2.0 I think).

    http://msdn.microsoft.com/en-us/library/5tbh8a42.aspx

提交回复
热议问题