how to check if list has different values in linq code example
Example: linq object list contains
using System.Linq;
bool exists = list.Any(x => x.surname == "Smith");
using System.Linq;
bool exists = list.Any(x => x.surname == "Smith");