CLI/C++ 在 C# (.Net Framework 4.7) 中命名为 ValueTuple

问题描述

有什么方法可以在 CLI/C++ 中实现如下相同的效果:

namespace Test
{
static class TestClass
{
  static (int a,int b) test = (1,0);
  static void v()
  {
    var a = test.a;
    var b = test.b;
    _ = (a,b);
  }
}

} 那么有什么方法可以在 CLI/C++ 中创建一个名称不同于 Item1 和 Item2 的 ValueTuple,以便它可以在 C# 中使用。 我使用的是 .Net Framework 4.7。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)