I am getting into C# and I am having this issue:
namespace MyDataLayer { namespace Section1 { public class MyClass { publ
cannot be accessed with an instance reference
It means you're calling a STATIC method and passing it an instance. The easiest solution is to remove Static, eg:
public static void ExportToExcel(IEnumerable data, string sheetName) {