c# - return a list-object from a dictionary -


How do I return all the listing entries present in the dictionary

  public square meters {public String meterID {get; Set; } Public listing & lt; Data & gt; Data {Received; Set; }} Public class data {public string time {get; Set; } Receive public int signal {}; Set; }}  

meter is a dictionary string, m has tried with this meter

  private static dictionary & lt; String, Metric & gt; Meter = new dictionary & lt; String, Metric & gt; (); Public static list & lt; Meter & gt; GetDataList () {return meters.Where (g = & gt; GA.qual (data)). Select (G = & gt; G. Vel) .Oolist (); }  

To select a single list of data for all meters:

  Public Stable List & lt; Data & gt; GetDataList () {return meters.Values.SelectMany (m => m.data) .toList (); }  

Comments