If you are using a typed dataset declared during development, the linq Contains method accepts a typed DataRow. By default, IEqualityComparer will compare all values ββin a DataRow. (Which is usually useless, since you must have a specific key).
DataSet1 ds = new DataSet1(); DataSet1.DataTable1Row row = ds.DataTable1.AddDataTable1Row(bla, bla); bool exists = ds.DataTable1.Contains(row);
source share