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

后端 未结 6 1885
我在风中等你
我在风中等你 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:00

    You can install NetLegacySupport.Tuple via nuget. This is the Tuple class from .Net 4.5 backported to .Net 2.0 and 3.5.

    You can install this via the package manager in Visual Studio or using nuget on the commandline.

    Here is the nuget package:

    https://www.nuget.org/packages/NetLegacySupport.Tuple

提交回复
热议问题