(1,15): error CS8179: Predefined type 'System.ValueTuple`2' is not defined or imported(2,47): error CS8179: Predefined type 'System.ValueTuple`2' is not defined or imported
(5,12):
我有一个用例,在这个用例中,我需要检查一个值是否是C# 7 ValueTuple,如果是的话,循环遍历每个项。我试过使用obj is ValueTuple和obj is (object, object)进行检查,但这两种方法都返回false。我发现我可以使用obj.GetType().Name,并检查它是否以"ValueTuple"开头,但在我看来,这似乎很糟糕。欢迎任何替代办法。if (item is ValueTuple) //thi