110,536
社区成员
发帖
与我相关
我的任务
分享
static void Main()
{
Console.WriteLine("Now time is {0}", MyMethod());
Console.ReadKey();
}
using System;
namespace ConsoleApplication
{
class Program
{
static void Main()
{
Console.WriteLine("Now time is {0}", MyMethod());
Console.ReadKey();
}
public static DateTime MyMethod()
{
return DateTime.Now;
}
}
}