edit: solved, sorry about this, was due to a typo.
This code.
List<Tuple<Int16, Int16>> a = new List<Tuple<Int16, Int16>>();
Tuple<UInt16, UInt16> b = Tuple.Create<UInt16, UInt16>(4, 2);
a.Add(b);
Produces the following error for a.Add(b)
The best overloaded method match for
'System.Collections.Generic.List<System.Tuple<short,short>>
.Add(System.Tuple<short,short>)'
has some invalid arguments.
In short
List<Tuple<short,short>>.Add(Tuple<short,short>)
has invalid arguments
I can’t see how this is.
You are trying to add an
UInt16pair to a list ofInt16pairs. That doesn’t work.You can add an
Int16pair to a list ofInt16pairs: