随笔分类 -  C#

1 2 下一页
C#中FileStream和StreamWriter/StreamReader的区别
摘要:https://blog.csdn.net/linxinfa/article/details/95215416 https://blog.csdn.net/u011966339/article/details/80912095 阅读全文
posted @ 2021-02-26 13:28 Manuel 阅读(70) 评论(0) 推荐(0)
值类型和引用类型的深入理解
摘要:https://www.jb51.net/article/46032.html 从概念上看,值类型直接存储其值,而引用类型存储对其值的引用。这两种类型存储在内存的不同地方。在C#中,我们必须在设计类型的时候就决定类型实例的行为。这种决定非常重要,用《CLR via C#》作者Jeffrey Rich 阅读全文
posted @ 2021-02-03 14:33 Manuel 阅读(347) 评论(0) 推荐(0)
String为值类型还是引用类型
摘要:https://www.cnblogs.com/littlewrong/p/9927154.html String为值类型还是引用类型 关于String为值类型还是引用类型的讨论一直没有平息,最近一直在研究性能方面的问题,今天再次将此问题进行一次明确。希望能给大家带来点帮助。 如果有错误请指出。 来 阅读全文
posted @ 2021-02-03 14:31 Manuel 阅读(112) 评论(0) 推荐(0)
System.Environment类
摘要:https://blog.csdn.net/smeller/article/details/7059944 System.Environment有很多非常有用的成员和方法,现总结如下: 1.获取操作系统版本(PC,PDA均支持)Environment.OSVersion 2.获取应用程序当前目录(P 阅读全文
posted @ 2020-12-24 16:34 Manuel 阅读(361) 评论(0) 推荐(0)
Process和ProcessStartInfo
摘要:https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo?view=net-5.0 一个程序启用一个外部程序时,如果不设置ProcessStartInfo.WorkingDirectory,则外部程 阅读全文
posted @ 2020-12-24 14:41 Manuel 阅读(609) 评论(0) 推荐(0)
在winform中显示PDF
摘要:https://blog.csdn.net/asdfghjkl110292/article/details/88710027 阅读全文
posted @ 2020-12-16 17:31 Manuel 阅读(245) 评论(0) 推荐(0)
从DataGridViewer导出Excel
摘要:导入Aspose.Cells模块 方式1: /// <summary> /// 将3个DataGridView导出Excel /// </summary> /// <param name="fileName"></param> /// <param name="dgv1"></param> publ 阅读全文
posted @ 2020-11-19 17:27 Manuel 阅读(61) 评论(0) 推荐(0)
C#获取特定进程CPU和内存使用率
摘要:https://www.cnblogs.com/maowang1991/p/3285983.html 阅读全文
posted @ 2020-11-12 14:59 Manuel 阅读(266) 评论(0) 推荐(0)
托管内存和非托管内存之间的相互转换
摘要:https://blog.csdn.net/leonwei/article/details/41940963 Marshal类官方文档:https://docs.microsoft.com/zh-cn/dotnet/api/system.runtime.interopservices.marshal 阅读全文
posted @ 2020-11-06 13:33 Manuel 阅读(160) 评论(0) 推荐(0)
DataGridViewer表格中设置ProgressBar显示进度百分比和修改进度条颜色
摘要:https://blog.csdn.net/qqqqqqqq188/article/details/43528959?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.add_p 阅读全文
posted @ 2020-10-21 15:00 Manuel 阅读(773) 评论(0) 推荐(0)
excel操作
摘要:https://blog.csdn.net/u011555996/article/details/79000270 阅读全文
posted @ 2020-10-20 15:28 Manuel 阅读(78) 评论(0) 推荐(0)
DateTime的各种用法
摘要:https://www.cnblogs.com/computer-lzy/archive/2012/07/20/2600506.html 阅读全文
posted @ 2020-10-20 09:19 Manuel 阅读(124) 评论(0) 推荐(0)
DataGridViewer表格中将Button设置为不可用
摘要:https://docs.microsoft.com/en-us/dotnet/desktop/winforms/controls/disable-buttons-in-a-button-column-in-the-datagrid?view=netframeworkdesktop-4.8&redi 阅读全文
posted @ 2020-09-29 17:32 Manuel 阅读(444) 评论(0) 推荐(0)
c#命名规范
摘要:https://blog.csdn.net/FliesOfTime/article/details/100688367 阅读全文
posted @ 2020-09-01 15:55 Manuel 阅读(157) 评论(0) 推荐(0)
委托和事件的区别详解
摘要:委托的本质,是一个类,而事件,是一个委托类型的私有变量加上两个公有方法(事件的+=和-=),这是本质区别。打个比方,string 也是一个类,而string s = "a",这个s是string类型的一个变量(略有不恰当,为了方便直观理解)。public delegate void myDel(); 阅读全文
posted @ 2020-08-20 10:24 Manuel 阅读(1393) 评论(0) 推荐(0)
事件详解
摘要:1.初步了解: (1)事件:指的是能够发生的什么事情。比如公司上市,这里的上市就是事件(比事情更正式。)。 (2)在c#中的定义:是类型的成员。是一种使对象或类具备了通知能力的成员。 (3)事件参数:经由事件发送过来的,与事件本身相关的消息,称为事件参数。 作用:比如,当手机的关注者收到通知之后,就 阅读全文
posted @ 2020-08-18 19:32 Manuel 阅读(322) 评论(0) 推荐(0)
事件示例
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Timers; using System. 阅读全文
posted @ 2020-08-18 19:24 Manuel 阅读(132) 评论(0) 推荐(0)
以字典形式写入xml
摘要:递归读取字典形式的对象,写入xml文件 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threa 阅读全文
posted @ 2020-08-17 19:05 Manuel 阅读(328) 评论(0) 推荐(0)
以字典形式生成xml
摘要:层级字典构造: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; na 阅读全文
posted @ 2020-08-12 10:26 Manuel 阅读(177) 评论(0) 推荐(0)
自动生成xml
摘要:#region 自动生成xml文件 public void GenerateXML(string path, string filename, Mat mat, PredictResult result) { XmlDocument xmlDoc = new XmlDocument(); //创建类 阅读全文
posted @ 2020-08-11 09:46 Manuel 阅读(708) 评论(0) 推荐(0)

1 2 下一页