For few reasons, static classes cannot implement interfaces, and I wonder what is the best practice for implementing two static classes that has the same methods with different implementations.
First class:
public static class MyStaticClass1
{
public static void DoSomething()
{
// Do Something here...
}
}
Second class:
public static class MyStaticClass2
{
public static void DoSomething()
{
// Do Something here...
}
}
The methods must be static since they are using the [DllImport] attribute which can be used on static methods only.
Depending on some runtime condition, In some runs I'll be using MyStaticClass1, and MyStaticClass2 on others, but not both in the same run.
Ideas?