What is C# analog of C++ std::pair?

前端 未结 14 2049
情话喂你
情话喂你 2020-11-29 16:54

I\'m interested: What is C#\'s analog of std::pair in C++? I found System.Web.UI.Pair class, but I\'d prefer something template-based.

Than

14条回答
  •  感情败类
    2020-11-29 17:18

    I created a C# implementation of Tuples, which solves the problem generically for between two and five values - here's the blog post, which contains a link to the source.

提交回复
热议问题