mytime.cs

来自「画图的作用 以及其他的类似图型转换的」· CS 代码 · 共 31 行

CS
31
字号
using System;

namespace chapter3
{
	/// <summary>
	/// MyTime 的摘要说明。
	/// </summary>
	delegate void TimeDelegate(string a);
	public class MyTime
	{
		public static void HelloTime(string s)
		{
			Console.WriteLine("Hello {0}! The time is {1} now!",s,DateTime.Now);
		}
		public static void GoodbyeTieme(string s)
		{
			Console.WriteLine("Goodbye {0}! The time is {1} now!",s,DateTime.Now);
		}
		public void SayTime(string s)
		{
			Console.WriteLine("{0}! The time is {1} now!",s,DateTime.Now);
		}
		public MyTime()
		{
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?