
c#
发疯的man
公众号☞干货食堂。
博客:https://blog.share888.top/
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c#中list的排序
https://www.cnblogs.com/mq0036/p/11386984.html internal class Person : IComparable<Person> { private String name; public Person(string name) { this.Name ...原创 2020-04-22 16:35:21 · 449 阅读 · 2 评论 -
读取简单的xml
XmlDocument doc = new XmlDocument(); //加载要读取的XML doc.Load(@"F:\Books.xml"); //获得根节点 XmlElement books = doc.DocumentElement; //获得子节点 返回节点的集合 XmlNodeList xnl = books.ChildNodes; foreach (XmlNode item in...原创 2020-04-18 23:25:10 · 282 阅读 · 0 评论 -
读取简单的xml
XmlDocument doc = new XmlDocument(); //加载要读取的XML doc.Load(@"F:\Books.xml"); //获得根节点 XmlElement books = doc.DocumentElement; //获得子节点 返回节点的集合 XmlNodeList xnl = books.ChildNodes; foreach (XmlNode item in...原创 2020-04-18 23:22:18 · 277 阅读 · 0 评论 -
读取简单的xml
XmlDocument doc = new XmlDocument(); //加载要读取的XML doc.Load(@"F:\Books.xml"); //获得根节点 XmlElement books = doc.DocumentElement; //获得子节点 返回节点的集合 XmlNodeList xnl = books.ChildNodes; foreach (XmlNode item in...原创 2020-04-18 23:20:58 · 279 阅读 · 0 评论 -
创建表格,并增加数据
public Form1() { InitializeComponent(); //不出现最后一行新增的一列 dataGridView1.AllowUserToAddRows = false; //设置列数 dataGridView1.ColumnCount = 3; //设置是否显示第一列 dataGridView1.ColumnHea...原创 2020-04-18 19:48:22 · 988 阅读 · 5 评论 -
追加XML文档
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using System.IO; namespace _5_追击XML { class Program { ...原创 2020-04-17 12:58:21 · 337 阅读 · 1 评论 -
创建简单的XML
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; namespace _03创建XML { class Program { static void M...原创 2020-04-17 12:34:18 · 321 阅读 · 0 评论 -
c#保存xml
private static void Main(string[] args) { //通过代码来创建XML文档 //1、引用命名空间 //2、创建XML文档对象 XmlDocument doc = new XmlDocument(); //3、创建第一个行描述信...原创 2020-04-17 11:47:05 · 1247 阅读 · 1 评论 -
c#的快捷键
快速对齐 ctrl+k 然后突然 松开k 按下d 智能提示 ctrl+j 折叠 #region string s = "Hello\r\nWorld!"; Console.WriteLine(s); Console.WriteLine(s); Console.WriteLine(s.Replace("\r\n", "\n")); #endregion ...原创 2020-03-30 22:27:10 · 422 阅读 · 1 评论