- 博客(6)
- 收藏
- 关注
原创 WPF随手记
WPF随手记 1. 设置窗口打开时位置 WindowStartupLocation=“CenterScreen” WindowStartupLocation=“CenterOwner” WindowStartupLocation=“Manual” 2.StaticResource和DynamicResource resource:资源(Resource)是保存在可执行文件中的一种不可执行数据,用来...
2020-02-03 22:21:03
398
1
转载 c#TCP发送结构体数据
c#TCP发送结构体数据byte数组与结构体数据相互转换结构体数据定义服务端客户端 byte数组与结构体数据相互转换 using System.Collections; using System.Collections.Generic; using System; using System.IO; using System.Runtime.Serialization; using System.R...
2019-04-25 17:07:12
1777
原创 装饰器和偏函数Python
装饰器和偏函数Python 装饰器 概念:是一个闭包,把一个函数当做参数返回一个替代函数,本质上是返回一个函数的函数 def outer(func): def inner(*args,**kwargs): #添加修饰功能 print("#################") func(*args,**kwargs) return in...
2018-11-23 10:29:30
199
原创 跨线程操作UI控件
跨线程操作UI控制 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; usin...
2018-11-20 21:05:48
338
原创 基于C#4.0 Task类实现异步
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class Program { static void Main(st...
2018-11-19 21:31:26
1627
原创 通过委托实现异步回调
通过委托实现异步回调 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { funHandle theHandle =...
2018-11-19 21:28:18
245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅