imoveable.cs

来自「OOP With Microsoft VB.NET And Csharp Ste」· CS 代码 · 共 21 行

CS
21
字号
namespace MoveIt 
{
	public enum Direction { Up, Down, Left, Right };

	public interface IMoveable 
	{
		int X 
		{
			get;
			set;
		}
		int Y 
		{
			get;
			set;
		}

		void Move(Direction direction, int howFar);

	}
}

⌨️ 快捷键说明

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