How to remove the exception "Predefined type" ValueTuple`2 "should be a structure during debugging?

I started using the new tuple function in C # 7.0, but I noticed that neither the function that returns the tuple nor its caller can check the values ​​of variables in debug mode. Instead, an exception is thrown:

$exception  error CS8182: Predefined type 'ValueTuple`2' must be a struct.  

Is there any way to get rid of this crash and debugging normally?

enter image description here

enter image description here

+4
source share
2 answers

It seems that the bug has been fixed by Microsoft, but it will be available in a future update (2017) https://github.com/dotnet/roslyn/pull/16930

+5
source

System.ValueTuple. , MS , 4.3.0 .

+3

Source: https://habr.com/ru/post/1672552/


All Articles