happlyfox happlyfox
3年前
[go-linq]-Go的.NET LINQ式查询方法
关于我开发者的福音,go也支持linq了坑爹的集合go在进行集合操作时,有很不舒服的地方,起初我真的是无力吐槽,又苦于找不到一个好的第三方库,只能每次写着重复代码。举个栗子类学生{姓名年龄性别}1、现在有10个学生的数组,如果我要统计所有年龄大于20岁的人,那我需要一、遍历二、自定义条件三、再append数组添加。2、接着我又
Stella981 Stella981
2年前
C# CRC16 modbus
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceWaterBubbleCheck{
Stella981 Stella981
2年前
C# HTTPServer和OrleansClient结合
usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.IO.Compression;usingSystem.Linq;usingSystem.Net;usingSystem.Text;
Stella981 Stella981
2年前
C# 中合并2个 Dictionary
内置方法usingSystem.Collections.Generic;usingSystem.Linq;Dictionary<string,objectdicAnewDictionary<string,object(){{"Name","姓名"},
Wesley13 Wesley13
2年前
C# 一个数组集合,任意组合,不遗漏,不重复
usingSystem;usingSystem.Collections.Generic;usingSystem.Diagnostics;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;names
Stella981 Stella981
2年前
C# lambda 和 Linq
本章节给大家带来的是Lambda和Linq的关系Lambda:是实例化委托的一个参数,也就是一个方法Linq:是基于委托(lambda)的封装,代码重用,逻辑解耦,是一个帮助类库,linq是用泛型,委托,lamda实现的,总的来说:把对数据操作的通用部分完成,把可变的交给委托,使用者只关心可变部分。一、Lambda文章的开始
Easter79 Easter79
2年前
System.Threading.Thread的使用及传递参数等总结
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceConsoleApplication3{classProgram{stati
Stella981 Stella981
2年前
C#后台调用webapi
usingSystem;usingSystem.Collections.Generic;usingSystem.IO;usingSystem.Linq;usingSystem.Net;usingSystem.Text;usingSystem.Threading.Tasks;
Stella981 Stella981
2年前
C#服务端 拦截器
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.ServiceModel.Channels;usingSystem.ServiceModel.Description;usingSystem.S
Wesley13 Wesley13
2年前
C# 生成二维码
 1、添加ThoughtWorks.QRCode.dll引用 2、代码usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Threading.Tasks;usingMicrosof