I have a C# dictionary defined as following..
Dictionary<string, List<FirstReportsData>> dict1 =
new Dictionary<string, List<FirstReportsData>>();
The List within my dictionary is defined as follows:
public class FirstReportsData
{
public FirstReportsData() { }
public int Id { get; set; }
public int FirstReportsItemId { get; set; }
public string Policy { get; set; }
public string CarrierCode { get; set; }
public string StateCode { get; set; }
public string RecordTypeCode { get; set; }
public string RecordData { get; set; }
}
The string (key) in the dictionary maybe a value for example like say "07", "00", or "09" . How do I take only the first half of the list with the key "00" and put it into a new dictionary. I then would also like to take the second half of the list from key "00" and put it into a second dictionary. Any possible direction on the approach or syntax needed would be greatly appreciated.