Ai
1 Star 1 Fork 0

稻草堆上打着滚儿/DesignMode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Program.cs 615 Bytes
一键复制 编辑 原始数据 按行查看 历史
sayook@qq.com 提交于 2020-04-26 15:17 +08:00 . 状态模式
using System;
using State.UpgradeEdition;
namespace State
{
internal class Program
{
private static void Main(string[] args)
{
var life = new Life();
//设置天气
life.Weather = Weather.Good;
life.Time = Time.Morning;
life.Doing();
life.Time = Time.Noon;
life.Doing();
life.Time = Time.Afternoon;
life.Doing();
life.Time = Time.Night;
life.Doing();
Console.WriteLine("\nHappy Ending~");
Console.ReadLine();
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/sayook/DesignMode.git
git@gitee.com:sayook/DesignMode.git
sayook
DesignMode
DesignMode
master

搜索帮助