Which code segment should you use?
A. from row in ds.Tables[0].AsEnumerable()where (string)row[“ContactName”] != nullselect row;
B. from row in ds.Tables[0].AsEnumerable()where row.Field<string>(“ContactName”) != nullselect row;
C. from row in ds.Tables[0].AsEnumerable()where !row.IsNull((string)row[“ContactName”])select row;
D. from row in ds.Tables[0].AsEnumerable()where !Convert.IsDBNull(row.Field<string>(” ContactName “))select row;
Answer:B
Which code segment should you use?
A. from row in ds.Tables[0].AsEnumerable()where (string)row[“ContactName”] != nullselect row; B. from row in ds.Tables[0].AsEnumerable()where row.Field<string>(“ContactName”) != nullselect row; C. from row in ds.Tables[0].AsEnumerable()where !row.IsNull((string)row[“ContactName”])select row; D. from row in ds.Tables[0].AsEnumerable()where !Convert.IsDBNull(row.Field<string>(” ContactName “))select row;