check if property is object type c# code example Example: how to check which item is in an object property c# Click to copyvar matches = myList.Where(p => p.Name == nameToExtract);