What namespace do I need to get my extension to work
Here is my Extension Method
using System; using System.Collections.Generic; using System.Web; using
As JS said, C# 2.0 doesn't have extension methods.
Also that extension method would be defined as:
public static DataTable ToDataTable(this IDataReader reader)
Try calling it like:
DataReaderExtensions.ToDataTable( cust.GetCustomerOrderSummary((string)Session["CustomerNumber"]) )