I have a class with both a static and a non-static interface in C#. Is it possible to have a static and a non-static method in a class with the same name and signature?
I get a compiler error when I try to do this, but for some reason I thought there was a way to do this. Am I wrong or is there no way to have both static and non-static methods in the same class?
If this is not possible, is there a good way to implement something like this that can be applied generically to any situation?
EDIT
From the responses I've received, it's clear that there is no way to do this. I'm going with a different naming system to work around this problem.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…