
C#
洱海之月
抱夜聆风别有味,卧楼听雨最怡人。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
西门子S7.Net.dll
1、C#使用S7.Net.DLL连接PLC,读写数据【https://download.youkuaiyun.com/download/hjsbbt/12044882?utm_source=iteye_new】2、C#使用S7.Net,Sharp7连接读写PLC【https://download.youkuaiyun.com/download/hjsbbt/12044882?utm_source=iteye_new】3、LinkPLC.rar【https://download.youkuaiyun.com/download/weixi原创 2021-04-09 21:55:29 · 4018 阅读 · 0 评论 -
JSON操作
1、C#将集合和Json格式互相转换的几种方式【https://www.cnblogs.com/duanjt/p/5180164.html】原创 2021-04-09 12:46:46 · 153 阅读 · 0 评论 -
Func介绍
参考网址【https://www.cnblogs.com/pnljs/p/3792407.html】示例代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;us.原创 2021-04-07 14:44:42 · 1522 阅读 · 0 评论 -
C#读取App.config文件信息
1、app.config文件<?xml version="1.0" encoding="utf-8"?><configuration> <appSettings> <add key="FilePaths" value="E:\Project Code\UpMonitor8.17\UpMonitor\bin\Debug\文件备份;E:\Project Code\UpMonitor8.17\UpMonitor\bin\Debug\Log"/>原创 2020-12-21 17:17:00 · 3147 阅读 · 0 评论 -
C#定期删除日志文件
1、定期删除日志文件HX.File.Delete.ServiceLog.Start(); //调用using System;using System.IO;using System.Text;using System.Threading;using System.Collections.Generic;using System.Runtime.InteropServices;namespace HX.File.Delete{ public class ServiceLog原创 2020-12-21 11:21:17 · 2344 阅读 · 2 评论 -
C#各种字符串转换
1、string[Json]字符串转换为List模型//string字符串,转换为List模型public List<T> JSONStringToList<T>(string JsonStr){ JavaScriptSerializer Serializer = new JavaScriptSerializer(); List<T> objs = Serializer.Deserialize<List<T>>(JsonS原创 2020-12-21 09:36:58 · 1141 阅读 · 0 评论 -
C#线程操作
1、委托异步执行this.Dispatcher.Invoke(() => { //代码内容 });this.Dispatcher.BeginInvoke(DispatcherPriority.Background, (Action)(() => //委托异步执行{ //代码内容}));2、Task线程System.Threading.Tasks.Task task = new System.Threading.Tasks.Task(Init);...原创 2020-12-21 09:34:08 · 194 阅读 · 1 评论 -
WPF 后台常用属性值设置
1、字体加粗Label.FontWeight = FontWeights.Bold;2、设置16进制颜色值Label.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#0099FF"));3、设置字体样式Label.FontFamily = new FontFamily("华文楷...原创 2018-07-27 17:30:54 · 7658 阅读 · 1 评论 -
WPF绘制矢量图(网址收藏)
1、https://yq.aliyun.com/articles/6787682、https://www.cnblogs.com/lonelyxmas/p/10254863.html3、https://docs.microsoft.com/zh-cn/dotnet/framework/wpf/graphics-multimedia/how-to-create-a-quadratic-bez...原创 2020-01-08 22:06:08 · 1974 阅读 · 0 评论 -
利用反射将Datatable、SqlDataReader转换成List模型
1. DataTable转IListpublicclassDataTableToList<T>whereT :new(){///<summary>///利用反射将Datatable转换成List模型///</summary>///<param name="dt"></param>///<returns..转载 2018-07-31 17:25:30 · 483 阅读 · 0 评论