using System.Collections.Generic;
public static void Main()
List<MGGoogleCampaignReport> data = new List<MGGoogleCampaignReport>();
var item = new MGGoogleCampaignReport();
item.AdwordId = i.ToString();
item.StartDate = DateTime.Now.AddDays(-i);
Console.WriteLine("{0}, {1}", item.Cost , item.StartDate);
var firstCost =data.Where(x=> x.StartDate.HasValue && x.Cost > 0)
.OrderBy(x=>x.Cost).ThenBy(x=>x.StartDate)
.FirstOrDefault(x=> x.AdwordId == "2");
Console.WriteLine(firstCost.StartDate);
public class MGGoogleCampaignReport
public string AdwordId { get; set; }
public double Cost { get; set; }
public DateTime? StartDate { get; set; }