日期:2014-05-17 浏览次数:20764 次
public struct WSpeedOut
{
public DateTime time;
public int Id;
public float Speed;
}
public struct FGradeOut
{
public DateTime time;
public float grade;
}
class ResultClass
{
public DateTime Time { get; set; }
public int id { get; set; }
public float speed { get; set; }
public float grade { get; set; }
}
Main():
Dictionary<DateTime, ResultClass> result = new Dictionary<DateTime, ResultClass>();
foreach (var w in WSpeedOutList)
{
result.Add(w.Time, new ResultClass() { Time = w.Time, id = w.id, speed = w.speed });
}
foreach (var f in FGradeOut)