我在做第一次控制台应用程序。我有 WinformApp,我将代码复制到 ConsoleApp。我有问题,我不知道如何从 static void Main 跳转到 public static void Sending。这是我的代码示例...
class Program
{
static void Main(string[] args)
{
int counter; //Counter pro export
int counterchyba;
string strediska = "0003,0005";
}
public static void Sending(int counter, int counterchyba, string strediska)
{
var c = (counter).ToString().PadLeft(5, '0');
SqlCommand cmd = new SqlCommand();
.........
}
}
你知道怎么可能吗?