![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
n_Tree
这个作者很懒,什么都没留下…
展开
-
C# dictionary 基本使用方法
字典 :Dictionary<[key], [value]> 是一个泛型结构。实例化 : Dictionary<int, string> dic = new Dictionary<int, string>();添加键值 :dic.Add(1, "苹果"); dic.Add(2, "香蕉");取字典值:string str = dic[1] ---->str = "苹果"; string str1 = dic[2 ---->str = "香蕉";..原创 2021-07-15 14:40:03 · 367 阅读 · 0 评论 -
C# 读写二进制文件
public partial class Form1 : Form { static string ConfigPth; public Form1() { InitializeComponent(); } private void 二进制文件写入_Click(object sender, EventArgs e) { if (textBox1.Tex...原创 2021-06-23 10:42:31 · 2700 阅读 · 0 评论 -
C# 时间获取,时间增加
//获取日期+时间 DateTime.Now.ToString(); // 2008-9-4 20:02:10 DateTime.Now.ToLocalTime().ToString(); // 2008-9-4 20:12:12 //获取日期 DateTime.Now.ToLongDateString().ToString(); // 2021年6月21日 DateTime.Now.ToShortDat...原创 2021-06-23 10:16:36 · 603 阅读 · 0 评论