así que tengo este método:valor nulo del método genérico
internal K GetValue<T, K>(T source, string col) where T : IBaseObject
{
string table = GetObjectTableName(source.GetType());
DataTable dt = _mbx.Tables[table];
DataRow[] rows = dt.Select("ID = " + source.ID);
if (rows.Length == 0) return K;
return (K) rows[0][col];
}
Quiero ser capaz de devolver un valor nulo, o algún tipo de valor vacío, si no se encuentran filas. ¿Cuál es la sintaxis correcta para hacer esto?