人人人人人人人人人人人人

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页
摘要: uwp 下载文件显示进度并解压文件 阅读全文
posted @ 2020-09-08 15:53 wgscd 阅读(395) 评论(0) 推荐(0) 编辑
摘要: async void test() { Color replaceBlack = Color.FromArgb(224,233,55,6); Color replaceWhite = Color.FromArgb(224, 233, 222, 222); // BitmapImage bmpimg 阅读全文
posted @ 2020-09-04 17:34 wgscd 阅读(269) 评论(0) 推荐(0) 编辑
摘要: . 远程调用 1. 创建一个远程的可序列化的类,这个类可以在远程调用中用于传输来去,似乎是个公共的类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System 阅读全文
posted @ 2020-08-27 14:55 wgscd 阅读(1021) 评论(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 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: 一、SignalR是什么 Asp.net SignalR是微软为实现实时通信的一个类库。一般情况下,SignalR会使用JavaScript的长轮询(long polling)的方式来实现客户端和服务器通信,随着Html5中WebSockets出现,SignalR也支持WebSockets通信。另外 阅读全文
posted @ 2020-08-20 11:02 wgscd 阅读(1140) 评论(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 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 老版本的写法经常是以BeginXXX, EndXXX, 或者xx.xxxAsycn(........) 新的支持 async异步关键字配合Task可读性和易用性比老板好多了。 新旧例子: using System; using System.Collections.Generic; using Sy 阅读全文
posted @ 2020-08-11 13:46 wgscd 阅读(476) 评论(0) 推荐(0) 编辑
摘要: ..在VS debug 模式下会“无法捕获” System.NullReferenceException。。。。。。但是在release 或者外部运行是能捕获的。 test code : Form2 f = null; try { f.Dispose(); } catch (NullReferenc 阅读全文
posted @ 2020-08-10 16:22 wgscd 阅读(1883) 评论(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 阅读(820) 评论(1) 推荐(0) 编辑
摘要: 「服务」WCF中NetNamedPipeBinding的应用实例 WCF中有很多种绑定,根据官方的说法,NetNamedPipeBinding是适用于同一台主机中不同进程之间的通信的。 今天终于实现了一个简单实例,整理一下。 1、服务端创建 首先要说一下,WCF服务是需要宿主程序的,可以寄宿在win 阅读全文
posted @ 2020-08-05 15:07 wgscd 阅读(425) 评论(1) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页