Can we have multiple main method in one cs file

Yes, but we have to choose the main methods while doing compilation.

csc Hello.cs /main:Demo
csc Hello.cs /main:test

results matching ""

    No results matching ""