1

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    
Begtostudy
  • 1,374
  • 4
  • 13
  • 28

1 Answers1

0

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

aaronasterling
  • 68,820
  • 20
  • 127
  • 125