0

Can't figure out with next comparing:

var type = typeof(ValueTuple<int, string>);
if (type.BaseType == typeof(ValueTuple)) 
// returns 'false', however, 'type.BaseType' is 'System.ValueTuple' at runtime   

Who can to explain that?

anatol
  • 1,680
  • 2
  • 24
  • 47

1 Answers1

1

As with any struct the base type is System.ValueType.

The similarity to the human eye got me confused for a minute or two.

Paulo Morgado
  • 14,111
  • 3
  • 31
  • 59