Unconfirmed, but rather correct translation (with some utilization):
DataTable data = (DataTable)Session["Data"]; var filters= (from row in data.AsEnumerable() where !(row[i_oColumn.BaseColumnName] is DBNull) let result = (row.Field<string>(i_oColumn.BaseColumnName)) .Replace(@"""",@"\""") orderby result select result).Distinct();
I suspect, however, that:
where !row.IsNull(i_oColumn.BaseColumnName)
woulc be clearer
source share