Can or should the C# class be static since all methods are static

Dec 28, 2013 at 5:56 PM

New to this great tool. Since all of the methods are static, should or can the class itself also be static? Does it matter one way or the other? If it makes a difference, we will not be using it in any kind of a high volume setting.
Dec 28, 2013 at 9:12 PM
Marking the class as static is just a compile-time indication to the C# compiler to only allow static members in the class. It has no effect at runtime, and does not affect Excel-DNA whether you add it or not. However, it can be useful to prevent you from mistakenly forgetting to mark a method as static when you do intend for it to be registered with Excel.

Marked as answer by j2associates on 12/28/2013 at 4:18 PM