c#
文章平均质量分 70
叽哩古哩
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
如何逐行读取文本文件 - .NET技术 / C#
StreamReader sr =new StreamReader(@"D:\a.txt");int lineCount =0;while (sr.Peek()> 0){lineCount++;MessageBox.Show(lineCount.ToString()+ "行:"+ sr.ReadLine());}sr.Close(); C# co转载 2015-08-12 16:51:11 · 4665 阅读 · 0 评论 -
C# GET 和 SET作用
C#中get和SET,看来看去还是看不懂,通俗一点解释一下,用了有什么好处,不用会怎么样如果你这样写是没有什么不一样的. private int __Old; public int Old{ get{return __Old;} set{__Old = value;} }但是如果你这样写就不一样了. private int __Old; public i转载 2015-08-13 15:30:59 · 441 阅读 · 0 评论 -
使用C#选择文件夹、打开文件夹、选择文件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace TestFolderBrow转载 2015-08-13 14:38:57 · 373 阅读 · 0 评论 -
C#自动添加using引用命名空间
有时候调用了某个函数却不知具体的命名空间,还得去帮助文档去查找,实在是笨办法,其实VS有一个快捷键来解决这个问题,Shilt+Alt+F10转载 2015-08-13 14:41:35 · 733 阅读 · 0 评论
分享