上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
摘要: 1.新建WPF项目,然后引用Microsoft.VisualBasic 2.删除原生的App.xaml,建立WpfApp类,并使该类继承自Application,在该类中实现WPF MainWindow 窗体的创建工作 public class WpfApp:System.Windows.Appli 阅读全文
posted @ 2022-04-11 14:28 丹心石 阅读(174) 评论(0) 推荐(0)
摘要: WCF Secrity基本概念 语法: <Bindings> <basicHttpBinding> <security mode=”None” /> </basicHttpBinding> </Bindings> Transfer security 主要包括三个方面: 消息完整性(Message I 阅读全文
posted @ 2021-10-13 21:53 丹心石 阅读(89) 评论(0) 推荐(0)
摘要: 以编程方式观察文件FileSystemWatcher类 通过System.IO.NotifyFilters 枚举来决定需要FileSystemWatcher类型监控文件的行为public enum NotifyFilters{ Attributes, CreationTime, DirectoryN 阅读全文
posted @ 2021-10-05 19:20 丹心石 阅读(212) 评论(0) 推荐(0)
摘要: <div id="app"> <div v-html="message"></div> <div>{{5+5}}</div> <div>{{ok?"Yes":"No"}}</div> <div> <textarea v-bind:value="message1"></textarea><br> <i 阅读全文
posted @ 2021-07-13 17:44 丹心石 阅读(38) 评论(0) 推荐(0)
摘要: 粘包问题:所谓粘包,就是指由于数据发送和接收不一致导致数据发送或接收出现偏离目标的现象。如:发送数据:55 AA 01 00 02 00 03 F4 55 AA 01 00 02 00 03 F4 接收数据:55 AA 01 00 02 00 03 F4 55 AA 01 00 02 00 03 F 阅读全文
posted @ 2021-06-08 17:54 丹心石 阅读(158) 评论(0) 推荐(0)
摘要: 第一步:打开目录,如下图所示 第二步: 阅读全文
posted @ 2021-05-04 19:07 丹心石 阅读(89) 评论(0) 推荐(0)
摘要: 1.首先需要安装 Autofac 和Autofac.Integration.Mvc install-package Autofac -version5.2.0 install-package Autofac.Integration.Mvc -version 5.0.0 2.编写依赖注入和解析器类,并 阅读全文
posted @ 2021-04-18 07:53 丹心石 阅读(82) 评论(0) 推荐(0)
摘要: 1.分别安装Ninject 和 Autofac 并引用 总结: 通过比较发现,两者用法基本相同,只是方法名称和调用方式不同,Ninject 用 new StandardKernel()方法获取IKernel对象,并通过该对象Bind() To 接口和实现类,通过该对象的Get() 方法获取接口对象。 阅读全文
posted @ 2021-04-17 04:08 丹心石 阅读(286) 评论(0) 推荐(0)
摘要: 在Asp.Net Core 2.1之后的版本中,则不需要Model.IsValid验证了,程序框架已经包含了该功能。 1.建立模型 using System.ComponentModel.DataAnnomations; public class Customer{ [Required(ErrorM 阅读全文
posted @ 2021-04-12 20:22 丹心石 阅读(61) 评论(0) 推荐(0)
摘要: public class XMLUtil { /// <summary> /// 把类型T序列化为字符串 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="serialObject"></param> /// < 阅读全文
posted @ 2021-03-02 10:21 丹心石 阅读(279) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页