无法通过下一次比较找出:
var type = typeof(ValueTuple<int, string>);
if (type.BaseType == typeof(ValueTuple))
// returns 'false', however, 'type.BaseType' is 'System.ValueTuple' at runtime 谁能解释呢?
发布于 2019-07-30 06:45:26
与任何struct一样,基本类型是System.ValueType。
与人眼的相似之处让我困惑了一两分钟。
https://stackoverflow.com/questions/57265109
复制相似问题