Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What changed in System.ValueTuple 4.4.0 -> 4.5.0?

I consider updating my System.ValueTuple references from 4.4.0 to (current) 4.5.0.

To avoid regressions, I'd like to find out what changed between those two releases. The nuget page says:

Release Notes

https://go.microsoft.com/fwlink/?LinkID=799421

which links to the .NET Core github repository.

Is the "Release Notes" link broken or does the .NET Core github repository actually contain the changelog for System.ValueTuple? If the latter, where exactly is it? I tried searching for System.ValueTuple in the repository, which yields a few results but did not help me find the changes between version 4.4.0 and 4.5.0.

like image 225
Heinzi Avatar asked Sep 04 '18 12:09

Heinzi


People also ask

What is System ValueTuple?

A ValueTuple is a structure introduced in C# 7.0. A ValueTuple overcomes two major limitations of tuples—namely, that they are inefficient and that they must be referenced as Item1, Item2, etc. That is, ValueTuples are both performant and referenceable by names the programmer chooses.

Is tuple struct C#?

The end result - C# tuples are extremely lightweight constructs - they are structs and their elements are mutable and directly addressable.


1 Answers

The sourcecode for System.ValueTuple can be found here.

According to the Nuget-History, Version 4.4.0 was released on 09.08.2017 and 4.5.0 was released on 29.05.2018.

So, according to the git history, this is the only commit that has been made within this timeframe (fixing a documentation typo):

  public T1 Item1;

  /// <summary>
- /// The current <see cref="ValueTuple{T1, T2}"/> instance's first component.
+ /// The current <see cref="ValueTuple{T1, T2}"/> instance's second component.
  /// </summary>
  public T2 Item2;
like image 133
mamen Avatar answered Oct 09 '22 18:10

mamen