0
如何退還是字典從字典
public class Meter
{
public string MeterID { get; set; }
public List<Data> data { get; set; }
}
public class Data
{
public string Time { get; set; }
public int Signal { get; set; }
}
儀表是一本字典的字符串,儀表 我有這個
private static Dictionary<string, Meter> meters = new Dictionary<string, Meter>();
public static List<Meter> GetDataList()
{
return meters.Where(g => g.Key.Equals(Data)).Select(g => g.Value).ToList();
}
什麼是儀表? Meter類的集合? – Christos
是字典'Dictionary'或'Dictionary '?目前尚不清楚。 –
elnigno
你需要從米選擇什麼?所有數據的組合列表(如單一列表')? – PashaPash