So i was reading this article[1], and there's a section "To declare a method that exports account information to Excel" with the following example:
using Excel = Microsoft.Office.Interop.Excel;
...
static void DisplayInExcel(IEnumerable<Account> accounts)
{
var excelApp = new Excel.Application();
...
}
Excel.Application is an interface. How is this possible?
I thought interfaces weren't instantiable. Thanks!