using System.Collections.Generic;
public string PaxType{get;set;}
public string DiscountCode{get;set;}
public static void Main()
var myList = new List<class1>()
new class1(){PaxType = "ADT", DiscountCode = string.Empty},
new class1(){PaxType = "ADT", DiscountCode = "test"},
new class1(){PaxType = "ADT", DiscountCode = string.Empty},
new class1(){PaxType = "ADT", DiscountCode = "test"},