using System.Collections.Generic;
public static void Main()
List<CloudAppsLease> cloudAppLeaseList = new List<CloudAppsLease> {
CloudAppName = "Microsoft Partner Cloud Services",
ExternalSystemCodeId = "44",
ProductTypeName = "MS Office 365",
Quantity = "1.0000000000",
SystemCode = "Office365",
SystemName = "Microsoft Cloud Services"
CloudAppName= "Microsoft Partner Cloud Services",
ExternalSystemCodeId= "44",
LeaseName= "MS Exchange Online 1",
ProductTypeName= "MS Office 365",
Quantity= "1.0000000000",
SystemName= "Microsoft Cloud Services"
CloudAppName = "Microsoft Partner Cloud Services",
ExternalSystemCodeId = "44",
LeaseName = "ms office365 enterprice E1",
ProductTypeName = "MS Office 365",
Quantity = "22.0000000000",
SystemCode = "Office365",
SystemName = "Microsoft Cloud Services"
var query = cloudAppLeaseList.Where(c => c.LeaseName == "MS Exchange Online 1").FirstOrDefault();
Console.WriteLine(query.LeaseName);
public class CloudAppsLease
public string CloudAppName { get; set; }
public string ProductTypeName { get; set; }
public string LeaseName { get; set; }
public string Quantity { get; set; }
public string ExternalSystemCodeId { get; set; }
public string SystemName { get; set; }
public string SystemCode { get; set; }