class A
{
public string CSVName { get; set; }
public string Name {get;set;}
public string SchemaName {get;set;}
public bool PrimaryAttribute {get;set;}
}
string[] arr = new string[2];
arr[0] = "Name";
arr[1] = "Value";
List<A> list = new List<A>();
string valueofschemaname = list.Where(li => li.CSVName == arr[0] && li.PrimaryAttribute == true).First().SchemaName ;