有师兄说C#里好像有封装好的类,但是都没接触过C#,试了一个helloworld的程序如下

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine("Hello World");
System.Console.WriteLine("This is the first C# program...");
PrintDataRange();
}
static void PrintDataRange()
{
System.Console.WriteLine("\"{0}\" data range: {1} to {2}", "byte", byte.MinValue, byte.MaxValue);
System.Console.WriteLine("\"{0}\" data range: {2} to {1}", "int", int.MinValue, int.MaxValue);
System.Console.WriteLine("data range: {1} to {2} typeof:\"{0}\" ", "short", short.MinValue, short.MaxValue);
}
}
}
{
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine("Hello World");
System.Console.WriteLine("This is the first C# program...");
PrintDataRange();
}
static void PrintDataRange()
{
System.Console.WriteLine("\"{0}\" data range: {1} to {2}", "byte", byte.MinValue, byte.MaxValue);
System.Console.WriteLine("\"{0}\" data range: {2} to {1}", "int", int.MinValue, int.MaxValue);
System.Console.WriteLine("data range: {1} to {2} typeof:\"{0}\" ", "short", short.MinValue, short.MaxValue);
}
}
}
然后建了一个“outlook2010外接程序”的项目,里面没有main的入口。
然后就不知道怎么进行下去了,网上搜的资料很少,不太看得懂,之前只用过C语言。
希望了解的前辈指点一下。
[此贴子已经被作者于2017-9-4 11:15编辑过]