如何用两种主要方法制作示例程序? [英] how to make a sample program with two Main methods?
本文介绍了如何用两种主要方法制作示例程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
using System;
class Ad
{
public static void Main()
{
Console.WriteLine("sadjfas A");
}
}
class Abc
{
public static void Main()
{
Console.WriteLine("another class");
}
}
我已经试过了
编译-> csc filename.cs/main:Abc
但是不起作用.
i have tried this
To Compile -> csc filename.cs/main:Abc
But doesn`t work.
推荐答案
亲爱的朋友,
这是您的问题的链接:-
http://www.dotnetexpertsforum.com/can- we-have-multiple-main-methods-in-c-application-t623.html [ http://www.dotnetspider.com/resources/22284-Multiple-Main-Methods- C.aspx [ ^ ]
希望对您有所帮助.
谢谢
Dear Friend,
This is the link for your questions:-
http://www.dotnetexpertsforum.com/can-we-have-multiple-main-methods-in-c-application-t623.html[^]
http://www.dotnetspider.com/resources/22284-Multiple-Main-Methods-C.aspx[^]
I hope this will help you out.
Thanks
关注此内容:
C#中的多个主要方法 [
Follow this:
Multiple Main Method in C#[^]
hope it helps :)
这篇关于如何用两种主要方法制作示例程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文