using System.Collections.Generic;
public static void Main()
var chartList = new List<Chart>()
new Chart() { Name = "A" , Settings = "1"},
new Chart() { Name = "B" , Settings = "2"},
bool includeSettings = false;
var filter = chartList.Select(chart =>
string.IsNullOrWhiteSpace(chart.Settings)
? chart.Name + ".Settings is null!!!"
: chart.Name + ".Settings is not null");
Console.WriteLine("First pass");
Console.WriteLine("\r\nSecond pass");
public string Name {get; set;}
public string Settings {get; set;}