I'm new to C# development, so here's a basic question.
I'm developing a code library (no UI) where several of the classes will
implement an IPersistable interface.
Each class lives in its own class file (within the same project) but all
classes are defined within the same namespace DaySpanLib.
Now here's my question: given that the interface I need to develop will be
implemented by several classes, each of which live in their own .cs file, in
which file do I create the interface? Do I create a separate General.cs file
that contains general stuff like this interface?
So far I created a "public interface IPersistable" in a separate General.cs
file (also in the namespace DaySpanLib), and it compiles fine.
However, I'm wondering what best practices are with respect to things like
general interfaces and enumerations... where do you put them?
Any input is greatly appreciated.
-- Hans De Schrijver