I have vs15. I took the code from the Internet and decided to figure it out. There are used tuples. So I have why they are underlined. Tried: -Put .NET framewor 4.7 and 4.7.1 -Try to install via NuGet

System.ValueTuple

an error:

Metadata for 'System.ValueTuple' from source 'nuget.org'

In general, my last decision to install vs17. But what if someone knows how to solve a problem?

I attach the beginning of the code, here it is clear that everything is underlined. But at work on vs17 everything goes well. enter image description here

  • Do you mean Visual Studio 2015? Well, he just still does not know about C # 7, and that underlines. - VladD
  • Related question.stackoverflow.com/q/735048/198316 - rdorn

1 answer 1

Tuple<double[], double[]>[] _trainset = new Tuple<double[], double[]>[] { new Tuple<double[], double[]>(new double[] { 0, 0 }, new double[] { 0, 1 }) }; 
  • Thanks for the help. Don't you know why the code in the picture in vs17 worked? - alladuh
  • @alladuh, please. Hmm, I don’t know why you expected it to compile. There is clearly not enough information for the compiler to understand what is being declared and created. - Igor
  • @Igor, it seems enough - Grundy
  • @Grundy Is this the seventh C # or something? Or already the eighth? - Igor
  • @Igor, like the seventh - Grundy