none
Essential .NET - C# 7.0: Tuples Explained RRS feed

All replies

  • Unfortunately JSON serialization is a weak point of C# 7.0 tuples.  You cannot get the assigned key name from the tuple (in a Web API, for example).  All you get back is...

    {

             "Item1": "Value1",

             "Item2": "Value2"

    }

    Wednesday, August 22, 2018 3:58 AM