如何在 C# 中将多个参数传递给 Static Void Main
How to pass multiple arguments to Static Void Main in C#
我正在尝试传递两个参数,例如:
static void Main(string[] args,string NewReportID)
但是我收到错误提示"Main has the wrong signature to be entry point"。有更好的方法吗?
"Main has the wrong signature to be entry point"
表示Main
只需要一个参数
将你的NewReportID
移到args
我正在尝试传递两个参数,例如:
static void Main(string[] args,string NewReportID)
但是我收到错误提示"Main has the wrong signature to be entry point"。有更好的方法吗?
"Main has the wrong signature to be entry point"
表示Main
只需要一个参数
将你的NewReportID
移到args