Accessing Tuples at Runtime using Reflection

added by DotNetKicks
2/1/2018 2:47:31 PM

3 Kicks, 262 Views

C# 7 added Tuples and provides an awesome syntax for accessing them. C# 7.1 improved the usability of tuples further with Tuple Name Inference. However, sometimes you need to access them dynamically and this can be tricky. Accessing tuples dynamically is tricky because there are only specialized tuple types for tuples with 0 through 7 parameters.


0 comments