C#泛型详解 C#菜鸟教程 C#中泛型的使用 ...
分类:
Windows开发 时间:
2019-09-02 23:26:45
收藏:
0 评论:
0 赞:
0 阅读:
79
yield是C#为了简化遍历操作实现的语法糖,我们知道如果要要某个类型支持遍历就必须要实现系统接口IEnumerable,这个接口后续实现比较繁琐要写一大堆代码才能支持真正的遍历功能。举例说明 using System;using System.Collections.Generic;using S ...
分类:
Windows开发 时间:
2019-09-02 23:13:46
收藏:
0 评论:
0 赞:
0 阅读:
68
我们知道只要找到启动文件夹,之后就能轻松设置一些程序开机启动了,可是很多用户不知道Win10启动文件夹在哪里?其实很好找到的,如果你不懂的话,那么赶紧看看小编整理的以下文章内容吧! Win10启动文件夹的路径: X:ProgramDataMicrosoftWindowsStart MenuProgr ...
分类:
Windows开发 时间:
2019-09-02 22:36:56
收藏:
0 评论:
0 赞:
0 阅读:
109
https://www.acwing.com/problem/content/232/ 错位排列: ...
分类:
Windows开发 时间:
2019-09-02 22:31:29
收藏:
0 评论:
0 赞:
0 阅读:
115
场景 File与FileStream的区别 举例: 将读取文件比作是从A桶往B桶运水。 使用File就是整个用桶倒进去,使用FileStream就是使用水管慢慢输送。 FileStream与StreamReader的区别 FileStream是操作字节的,即可以操作任意一种类型的文件。 Stream ...
分类:
Windows开发 时间:
2019-09-02 21:59:33
收藏:
0 评论:
0 赞:
0 阅读:
72
C#各版本新增加功能(系列文章) 本系列文章主要整理并介绍 C# 各版本的新增功能。 C# 8.0 C#8.0 于 2019年4月 随 .NET Framework 4.8 与 Visual Studio 2019 一同发布,但是当前处于预览状态。预计在2019年9月正式发布。 目前提供以下功能可供 ...
分类:
Windows开发 时间:
2019-09-02 21:58:47
收藏:
0 评论:
0 赞:
0 阅读:
267
Java 8提供了一个全新的API,用以替换java.util.Date和java.util.Calendar。Date / Time API提供了多个类,帮助我们来完成工作,包括: LocalDateLocalTimeLocalDateTimeZonedDateTime—————————————— ...
分类:
Windows开发 时间:
2019-09-02 19:24:24
收藏:
0 评论:
0 赞:
0 阅读:
49
Calendar类,专门用于转换特定时刻和日历字段之间的日期和时间。 使用Calendar 获取当前日期和时间非常简单: Calendar calendar = Calendar.getInstance(); // gets current instance of the calendar 与dat ...
分类:
Windows开发 时间:
2019-09-02 19:12:09
收藏:
0 评论:
0 赞:
0 阅读:
80
前提 入行已经7,8年了,一直想做一套漂亮点的自定义控件,于是就有了本系列文章。 GitHub:https://github.com/kwwwvagaa/NetWinformControl 码云:https://gitee.com/kwwwvagaa/net_winform_custom_contr ...
分类:
Windows开发 时间:
2019-09-02 17:47:48
收藏:
0 评论:
0 赞:
0 阅读:
86
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; u... ...
分类:
Windows开发 时间:
2019-09-02 17:46:32
收藏:
0 评论:
0 赞:
0 阅读:
82
首先我们先建立文件的结构 如下图: components - 存放所有的全局方法,比如:autoplay的函数 lib - 所有第三方的方法 比如:DBTool:数据库的方法 logs - 日志 webroot - 整个api的入口文件,就是xxx.com访问的文件夹 config.php - 全局 ...
分类:
Windows开发 时间:
2019-09-02 17:09:01
收藏:
0 评论:
0 赞:
0 阅读:
97
using (OpenFileDialog ofd = new OpenFileDialog()) { ofd.Title = "请选择要插入的图片"; ofd.Filter = "JPG图片|*.jpg|BMP图片|*.bmp|Gif图片|*.gif"; ofd.CheckFileExists = ...
分类:
Windows开发 时间:
2019-09-02 14:38:44
收藏:
0 评论:
0 赞:
0 阅读:
73
介绍 为了以后能在系统上快速安装maven环境,准备这样一个小笔记。 操作步骤 1. 从 "maven官网" 下载maven; 2. 解压到自己想存放的目录,并且新建自己的仓库目录; 3. 配置maven环境变量,直接将maven中的bin目录配置到path中(配置Maven_Path感觉没有必要) ...
分类:
Windows开发 时间:
2019-09-02 14:37:45
收藏:
0 评论:
0 赞:
0 阅读:
79
public static async Task<List<Syncchip>> DownSyncchipList(int id) { using (var client = new HttpClient()) { try { string url = ApiServer.url+"/school/ ...
分类:
Windows开发 时间:
2019-09-02 14:34:53
收藏:
0 评论:
0 赞:
0 阅读:
135
List<DeptInfo> deptList = (from emp in empList where emp.Status == "在职" //筛选“在职”员工 orderby emp.DeptID ascending //按“部门ID”排序 group emp by new //按“部门ID” ...
分类:
Windows开发 时间:
2019-09-02 14:27:32
收藏:
0 评论:
0 赞:
0 阅读:
81
芮源: public class IsInternet { /// <summary> /// 判断是否有网 /// </summary> /// <returns>true为有网,false为无网</returns> public bool IsInternetAvailable() { try ...
分类:
Windows开发 时间:
2019-09-02 14:02:13
收藏:
0 评论:
0 赞:
0 阅读:
82
win7学习网站: 软件地址 QQ群 入门级课程 简单的电脑硬件信息查看 计算机右键 属性 计算机右键 管理 磁盘管理 详细信息查看 安装鲁大师能看到具体信息 转速越高,性能越好 网卡:(百兆、千兆、万兆) Gigabit 千兆网卡,即物理传输速率是千兆每秒 cpu、内存和磁盘都是插在主板上的 操作 ...
分类:
Windows开发 时间:
2019-09-02 13:52:36
收藏:
0 评论:
0 赞:
0 阅读:
68
//分组去重 Tag_data = Tag_data.GroupBy(p => p.epc).Select(g => g.First()).OrderBy(o=>o.epc).ToList(); //去除字符串的空格 string trim = Regex.Replace(epc.epc, @"\s ...
分类:
Windows开发 时间:
2019-09-02 13:25:25
收藏:
0 评论:
0 赞:
0 阅读:
99
Usage of API documented as @since 1.6+ This inspection finds all usages of methods that have @since tag in their documentation. This may be useful whe ...
分类:
Windows开发 时间:
2019-09-02 13:14:38
收藏:
0 评论:
0 赞:
0 阅读:
483
picHeadImg.ImageLocation = string.Format("http://img3.imgtn.bdimg.com/it/u=4160106393,1595591376&fm=214&gp=0.jpg"); // picHeadImg.Image = Image.FromSt ...
分类:
Windows开发 时间:
2019-09-02 13:02:05
收藏:
0 评论:
0 赞:
0 阅读:
91