c# - Getting "Tuple element name is inferred. Please use language version 7.1 or greater to access an element by its inferred name." -
we have following code has been working fine in our uwp app until today after updated visual studio 2017 latest 15.3.
private void test() { var groups = new list<(guid key, ilist<(string, bool)> items)>(); var items = new list<(string, bool)> { ("a", true), ("b", false), ("c", false) }; var group = (guid.newguid(), items); groups.add(group); }
there no error message in output window
tuple element name 'items' inferred. please use language version 7.1 or greater access element inferred name.
any idea why , how fix this?
project->properties->build->advanced->language version->c# latest minor version
Comments
Post a Comment