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