一、需求分析 通过控制台输入绿灯,黄灯,红灯显示时间,然后倒计时,周而复始。 二、运行效果 1、输入显示时间 2、绿灯,黄灯,红灯,倒计时周而复始 三、实现代码 using System; using System.Collections.Generic; using System.Linq; us ...
XElement 命名空间在 System.Xml.Linq 之下, 能够方便操作 xml , 今天测试了一下API 如下,使用 XmlDocument 创建 一个传统 xml 对象, 之后能过 XElement 快速创建子元素 , 其中包含 XElement 与 XmlElement 对象转换。 ...
分类:
其他好文 时间:
2019-10-30 18:09:14
阅读次数:
288
2018年10月24日 周三 13:30 linq详细案例.rtf 2018年10月8日 周一 13:29 linq详细案例 LINQ to SQL语句(1)之Where 适用场景:实现过滤,查询等功能。 说明:与SQL命令中的Where作用相似,都是起到范围限定也就是过滤作用的,而判断条件就是它后 ...
分类:
其他好文 时间:
2019-10-29 15:30:41
阅读次数:
76
需要查询当天时间, DateTime time = Convert.ToDateTime(DateTime.Now.ToString("yy-MM-dd") ) //获取当前时间 list = list.where(d=>d.time == time) //然后使用linq进行查询 然后比较有意思的 ...
分类:
其他好文 时间:
2019-10-28 12:42:20
阅读次数:
308
1.功能类 using System;using System.Collections.Generic;using System.ComponentModel;using System.IO;using System.Linq;using System.Reflection;using System ...
分类:
Web程序 时间:
2019-10-25 18:24:14
阅读次数:
92
博客原文地址:https://www.cnblogs.com/qq260250932/p/5361043.html using System; using System.Collections.Generic; using System.Linq; using System.Text; using ...
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
分类:
其他好文 时间:
2019-10-24 23:23:19
阅读次数:
136
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:
编程语言 时间:
2019-10-22 18:36:44
阅读次数:
78
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; names... ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CommonLib { public class... ...
分类:
其他好文 时间:
2019-10-22 18:23:48
阅读次数:
154