In SharpDevelop, I want to create a dll which contains a static methon, void Main(string[] args).
Some one said I should use decorator to restrict the function in IronPython.
I found “@staticmethod”, but others, “void”, “string[] args”, how to restrict them?
class MyClass:
def __init__(self):
pass
@staticmethod
def Main(args):
pass
Python doesn’t have return types. Just don’t return anything. You can do this either by using an empty return statement or by not using a return statement at all