Hi
I would like to specify an interface, but have the classes that implement it do so with static methods. eg:
It seems that I am not allowed to do this. Does anybody have any suggestions how I could achieve what I want here?
Thank you!
PS I am still new to C#!!
I would like to specify an interface, but have the classes that implement it do so with static methods. eg:
Code:
public interface IFace1
{
bool MethodOne();
}
public class Class1 : IFace1
{
public static bool MethodOne();
}
It seems that I am not allowed to do this. Does anybody have any suggestions how I could achieve what I want here?
Thank you!
PS I am still new to C#!!