Search code examples
c#.netextension-methods

Why is this extension method not working?


public static string ToTrimmedString(this DataRow row, string columnName)
{
    return row[columnName].ToString().Trim();
}

Compiles fine but it doesn't show up in intellisense of the DataRow...


Solution

  • My guess is you haven't included the namespace.