I have a strongly-typed datatable and I search for a row by primary key (FyndBy) and them if the row exists I want to delete it. From a style perspective which of the methods below do you prefer?
MyDataRowType selectedRow = table.FindByTablePrimaryKey(something);
if (selectedRow != null)
selectedRow.Delete();
or
if (table.FindByTablePrimaryKey(something) != null)
table.FindByTablePrimaryKey(something).Delete();