弹来弹去跑马灯!

08 2020 档案

摘要:. 远程调用 1. 创建一个远程的可序列化的类,这个类可以在远程调用中用于传输来去,似乎是个公共的类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System 阅读全文
posted @ 2020-08-27 14:55 wgscd 阅读(1157) 评论(1) 推荐(0) 编辑
摘要:c# 3.0 get set 默认值 .NET Framework 3.5 使用的是 C# 3.0,C# 3.0 有一些新的语言特性,其中有一项就是快捷属性。 之前的写法: private int _id = 0; public int Id { get { return _id; } set { 阅读全文
posted @ 2020-08-24 16:14 wgscd 阅读(1213) 评论(0) 推荐(0) 编辑
摘要:一、SignalR是什么 Asp.net SignalR是微软为实现实时通信的一个类库。一般情况下,SignalR会使用JavaScript的长轮询(long polling)的方式来实现客户端和服务器通信,随着Html5中WebSockets出现,SignalR也支持WebSockets通信。另外 阅读全文
posted @ 2020-08-20 11:02 wgscd 阅读(1237) 评论(0) 推荐(0) 编辑
摘要:// <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2020-08-11 16:44 wgscd 阅读(312) 评论(0) 推荐(0) 编辑
摘要:老版本的写法经常是以BeginXXX, EndXXX, 或者xx.xxxAsycn(........) 新的支持 async异步关键字配合Task可读性和易用性比老板好多了。 新旧例子: using System; using System.Collections.Generic; using Sy 阅读全文
posted @ 2020-08-11 13:46 wgscd 阅读(484) 评论(0) 推荐(0) 编辑
摘要:..在VS debug 模式下会“无法捕获” System.NullReferenceException。。。。。。但是在release 或者外部运行是能捕获的。 test code : Form2 f = null; try { f.Dispose(); } catch (NullReferenc 阅读全文
posted @ 2020-08-10 16:22 wgscd 阅读(2134) 评论(0) 推荐(0) 编辑
摘要:wixtoolset 和VS 插件:https://wixtoolset.org/releases/ 教学:https://www.firegiant.com/wix/tutorial/getting-started/ 例子:https://www.firegiant.com/system/file 阅读全文
posted @ 2020-08-06 10:12 wgscd 阅读(869) 评论(1) 推荐(0) 编辑
摘要:「服务」WCF中NetNamedPipeBinding的应用实例 WCF中有很多种绑定,根据官方的说法,NetNamedPipeBinding是适用于同一台主机中不同进程之间的通信的。 今天终于实现了一个简单实例,整理一下。 1、服务端创建 首先要说一下,WCF服务是需要宿主程序的,可以寄宿在win 阅读全文
posted @ 2020-08-05 15:07 wgscd 阅读(457) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示