Search code examples
c#console-applicationprogram-entry-point

How to pass multiple arguments to Static Void Main in C#


I am trying to pass two arguments like :

static void Main(string[] args,string NewReportID)

But I am getting error stating "Main has the wrong signature to be entry point". Is there a better way to do this?


Solution

  • "Main has the wrong signature to be entry point" means that Main need only one params

    Move your NewReportID in args