Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
具有相同的长度time和data值。两者都是double。保存此值的最佳方法是什么?
time
data
double
List<Tuple<double, double>> Tuple<List<double>, List<double>>
还是完全不同的东西?
我会开设一个班级并拥有该班级的一个List项目。
List
class TimeData { double time; double data; } List<TimeData> values;
您可以考虑将其设为结构,但类在 C# 中更易于处理