随笔分类 - C#
摘要:依赖 1.System.Data.SQLite 2.SqlKata
阅读全文
摘要:https://www.cnblogs.com/tiancai/p/4591731.html C 中new和override是继承中经常用到的两个关键字,但是往往有时候容易把这两个关键字的作用搞混淆。 new C new关键字表示隐藏,是指加上new关键字的属性或函数将对本类和继承类隐藏基类的同名属
阅读全文
摘要:https://docs.microsoft.com/zh cn/dotnet/csharp/language reference/tokens/interpolated
阅读全文
摘要://using NationalInstruments.NI4882; //请将项目文件中的“AutoGenerateBindingRedirects”属性设置为true //https://www.cnblogs.com/zoro zero/p/5867320.html //NI4882_1850
阅读全文
摘要:导入sqlite库 1.下载 安装包 http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki 记得.net frame 将来会被.net core 替代(应该只是想维护一个 跨平台的版本), 新项目 应该尽量使用.n
阅读全文
摘要:项目中用到 GetPrivateProfileString但是使用中, 发现 无法读出 ini 配置中的值, 比如Enable_log =3 我读到的是 API设置的默认值. 网上说可能时字符集编码的问题. 带着问题, 测试多次,发现 字符编码的确会影响!!! 结果: 实际上,用utf8 还是会出现
阅读全文
摘要:```cs public static List TraverseDirector(string dir, bool isTraveSubDirFlag, bool isFilterSuffix, string suffix) { string suffix_ = "*.*"; if (isFilterSuffix) ...
阅读全文
摘要:方案1: 图像处理 opencv etc 方案2: 开源框架,直接使用,已经优化
阅读全文
摘要:```t
System.Environment.CurrentDirectory; //当前路径
System.Windows.Forms.Application.ExecutablePath; //当前路径/app.exe
System.Windows.Forms.Application.CommonAppDataPath; //exe数据存放路径 c:\\programData\\ap...
阅读全文
摘要:```t this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None; /*
FormBorderStyle.FixedSingle
FormBorderStyle.Fixed3D
FormBorderStyle.FixedDialog
FormBorderStyle....
阅读全文
摘要:参考:https://blog.csdn.net/yyht800/article/details/54631357 参考:https://blog.csdn.net/baidu_41878679/article/details/82823145 什么是单例模式 单例模式指的是在应用 整个生命周期内只
阅读全文
摘要:http://csharpindepth.com/Articles/General/Singleton.aspx introduction 4th在线看 https://www.manning.com/books/c sharp in depth fourth edition 参考 http://z
阅读全文
摘要:参考 Tips :以后找源码可以看这 = github 找不到List.cs此文件(我找不到而已),所以去microsoft 官网找的此文件,如下 cs // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved.
阅读全文
摘要:c 1.遍历目录 查找图片 2.在 pictureBox 循环播放
阅读全文
摘要:在控制面板中,选择“添加删除程序”,找到office ,选择“更改”,在对话框中选择“添加删除功能”,然后选择自定义安装,添加上office工具 中的.net可编程性支持,安全起见,把excel下的,word下的此选项都添加上,然后点击“更新”按钮,更新office,完成后再回到.net开发平台。
阅读全文
摘要:CSharp读取配置文件的类(简单实现) 注意没有写
阅读全文