![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
LuckyDragonM
自动化行业 数据库 vbs vb java C#
展开
-
批量替换List中某个属性的值
data.FindAll(o => o.item.ToUpper() == "TRUE").ForEach(c => c.item= "1");原创 2022-03-21 05:48:35 · 1945 阅读 · 0 评论 -
.net Web前端跨域访问
<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="Content-Type" /> <add name="Access-Control-Allow-Methods" valu...原创 2021-05-13 13:42:20 · 129 阅读 · 0 评论 -
C# COM控件开发实例和注册使用实例 (VS2015)
软件环境:安装软件:开发 创建项目 编写类和代码 using System;using System.Collections.Generic;using System.Linq;using System.Runtime.InteropServices;using System.Text;using System.Threading.Tasks;name...原创 2020-03-13 15:04:14 · 1340 阅读 · 0 评论 -
C#检查执行程序用时
Stopwatch sw = new Stopwatch();sw.Start();//代码sw.Stop();sw.ElapsedMilliseconds;sw.ElapsedMilliseconds;sw.Reset();原创 2019-04-17 14:45:52 · 461 阅读 · 0 评论 -
C#直接与S7-200Smart、S7-300/400、S7-1200/1500以太网、PPI、MPI通讯
C#直接与S7-200Smart、S7-300/400、S7-1200/1500以太网、PPI、MPI通讯1.0 通讯组件概述该类通讯组件适用于基于PC高级语言的工业自动化控制系统,用于PC与可编程控制器(PLC)、智能仪表等进行数据通讯。组件采用动态链接库文件(*.DLL)的形式,在PC系统的项目工程里引用该组件,调用相应的属性与方法函数,即可快速实现PC与PLC的数据高效交换。DL...转载 2019-04-17 22:56:38 · 6834 阅读 · 1 评论 -
C# STMP发送邮件简例
//***重点:需要开启服务器STMP或其他 string host = "smtp.163.com";// 邮件服务器smtp.163.com表示网易邮箱服务器 string userName = "manlong@test.com";// 发送端账号 string password = "test1";/...原创 2019-05-22 10:17:09 · 332 阅读 · 0 评论