I have a BaseImageView (platform is irrelevant here), which has a property Effect, which is a command object.
I would like all my commands to implement IImageEffect, which has an static method ApplyEffect, taking an image and returning the image with the effect.
But the compiler complains that I cannot mark an interface method as static, but this seems like the logical option (as there is no state information needed for the effect).
I ask this because I would need 100 effect objects to apply 1 effect to 100 different images, while I could get away with passing the class and calling the static method, this would do away with the 100 instances.
Is there a way I can have a static interface, or a way that I can pass a class and have it call the static ApplyEffect of that type?