csharp
8 posts
C# 根据模板将数据写入word
参照的下载链接创建的项目接口: ,但是资源是一个txt文件,需要重新手打代码,不过也算是练习了。 在开始之前,我们需要先从nuget安装 Microsoft.Office.Interop.Word ,下面是代码需要的直接复制就可以,用起来和NPOI还是稍微有些不同。
C# Writing Data to Word via Template
Project interface created based on reference download link: , but the resource is a txt file, need to type the code manually, considered as practice...
csharp-special-folder
Title : 获得电脑特殊文件夹的办法 官方连接: 我们通常会在文件中加载一些缓存文件,方便下次运行的时候调取。如果使用硬盘地址如: H:\preview ,用户可能会出现没有H盘符的情况,但是所有的电脑都会有一些固定的缓存路径. 如果想要访问Temp文件夹,在电脑中我们可以输入 %temp%...
How to Get Special Folders on Computer
Title : How to Get Special Folders on Computer Official Link: We usually load some cache files in the file to facilitate retrieval next time. If usi...
c# 字符串与16进制互导
参考链接: 结果: code:
C# String and Hex Conversion
Reference Links: Result: code:
根据字符串获得相应枚举值和DescriptionAttribute
根据字符串获得枚举值 根据枚举值获得DescriptionAttribute 参考链接:
Get Enum Value and DescriptionAttribute from String
Get Enum Value from String Get DescriptionAttribute from Enum Value Reference Links:
C# wpf 智能选择对话框
准备: WpfToolKit.dll,System.Windows.Controls.Input.Toolkit.dll 下载或通过nuget搜索安装,下载链接在第一个博客中 内容: 前端 通过wpftool框架实现自动补全信息或智能选择的功能 在前端添加 xmlns:toolkit="clr...
C# WPF Smart Selection Dialog
Preparation: Download WpfToolKit.dll, System.Windows.Controls.Input.Toolkit.dll or install via NuGet search, download link is in the first blog. Con...
C#通过数据库进行软件的自动更新
看了许多博客是利用本地和服务器的xml文档进行更新,便想着能不能用数据库完成这个操作 基本思路与一般的方式一直,本地会有一个xml文件里面记录版本号更新时间软件本地地址信息 xml database 数据库结构 code 本例是通过ftp进行试验,通过读取本地xml文档版本与服务器数据库进行比较...
C# Software Auto-update via Database
I read many blogs using local and server XML documents for updates, so I wondered if this could be done using a database. The basic idea is consiste...
c#如何比较版本号的大小
参照文章: 在c 中有 version 类可以进行版本号的比较
How to Compare Version Numbers in C#
Reference Article: In C , there is a Version class that can be used to compare version numbers.
修改A列表同时B列表同时修改的问题记录
今天在编程时进行列表的转换,同时对转换后列表进行删除操作。 发现对A进行删除操作后,firList的列表也会随之进行删除。 具体原因目前没有查清,估计是因为内存占用的原因,导致两个列表会同时进行操作,具体原因未查清,插个旗子后面补充。 后面通过对列表firList进行clone操作,这样两个列表...
Issue where modifying List A also modifies List B
Today, while programming, I performed list conversion and simultaneously deleted items from the converted list. I found that after deleting from A,...