A simple example using the code snippet below:
using System.Data;
using CustomerNameSpace;
...
...
CDataSet.CustomerDataTable dtCustomer = GetCustomer();
var customersWithName = dtCustomer.AsEnumerable()
.Where(x => x.Name != null)
.CopyToDataTable();
For some reason, my coworker has created an extension method CopyToDataTable()
within the CustomerNameSpace
.
The program in this case is using both namespaces System.Data
and CustomerNameSpace
.
Both now contains the extension method CopyToDataTable()
.
In the sample snippet below, is there a way to specify which extension methods from these two namespaces to use?