I have a List of objects (lst) and DataTable (dt). I want to join the lst and dt on the common field (code as string) and need to return all matching rows in the lst.

My List contains two columns i.e code and name along with values below:

```
code name
==== ====    
1    x    
2    y    
3    z

```

The DataTable contains two columns i.e code and value along with values below:

```
code value
==== =====    
3    a    
4    b    
5    c

```

The result is:

```
3   z

```

Below is my code; but I know it is not a correct statement and thus seeking your advice here. I would be much appreciated if you could guide me on how to write the correct statement.

```
var ld = from l in lst
         join d in dt.AsEnumerable() on l.code equals d.code
         select new { l.code, l.name };

```