KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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.
Tags (comma-separated)
Save Edits
Cancel