随笔分类 -  .NET

摘要:在C#中,WebRequest方法和WebClient方法,在多线程时,对并发请求数量有一个默认限制,这个限制与操作系统相关,在Windows XP/Windows 7等PC系统上默认为2个,而在Windows 2008等服务器系统中,默认为10个,也就是说在出现高并发的环境中,使用WebReque 阅读全文
posted @ 2024-03-01 15:47 skybirdzw 阅读(31) 评论(0) 推荐(0) 编辑
摘要:在 Windows 上,您可以使用一些内置的工具来验证 SSL 证书信息内容,比如使用 certutil 或者浏览器本身的功能。 使用 certutil 命令行工具: 查看证书详细信息: 打开命令提示符(Command Prompt)或 PowerShell,并执行以下命令: bashCopy co 阅读全文
posted @ 2023-12-06 10:39 skybirdzw 阅读(723) 评论(0) 推荐(0) 编辑
摘要:CancellationToken 阅读全文
posted @ 2023-11-03 09:16 skybirdzw 阅读(268) 评论(0) 推荐(0) 编辑
摘要:Ctrl+J / Ctrl+K,L: 列出成员 Ctrl+Shift+空格键 / Ctrl+K,P: 参数信息 Ctrl+K,I: 快速信息 Ctrl+E,C / Ctrl+K,C: 注释选定内容 Ctrl+E,U / Ctrl+K,U: 取消选定注释内容 Ctrl+K,M: 生成方法存根 Ctrl 阅读全文
posted @ 2023-09-05 12:36 skybirdzw 阅读(1093) 评论(0) 推荐(0) 编辑
摘要:表达式体定义 阅读全文
posted @ 2022-02-18 18:41 skybirdzw 阅读(82) 评论(0) 推荐(0) 编辑
摘要:元组类型和字面量 阅读全文
posted @ 2022-02-18 18:04 skybirdzw 阅读(117) 评论(0) 推荐(0) 编辑
摘要:C#时间戳 阅读全文
posted @ 2021-09-28 15:04 skybirdzw 阅读(303) 评论(0) 推荐(0) 编辑
摘要:C#新特性 阅读全文
posted @ 2021-08-02 11:49 skybirdzw 阅读(29) 评论(0) 推荐(0) 编辑
摘要:windows server中使用NLB实现负载均衡 阅读全文
posted @ 2019-02-12 10:05 skybirdzw 阅读(1070) 评论(0) 推荐(0) 编辑
摘要:协变和逆变 阅读全文
posted @ 2019-01-30 09:17 skybirdzw 阅读(617) 评论(0) 推荐(1) 编辑
摘要:.NET中AOP实现 阅读全文
posted @ 2019-01-29 15:27 skybirdzw 阅读(1158) 评论(0) 推荐(0) 编辑
摘要:GAC的使用方式 阅读全文
posted @ 2018-12-26 09:46 skybirdzw 阅读(1931) 评论(0) 推荐(1) 编辑
摘要:为了演示委托,我们先来定义一个方法:public static bool IsTen(int i){ return i == 10 ? true : false;}如果要用自定义委托,则需要声明:delegate bool IsTenDelegate(int i);示例一://这是最基本的写法IsT 阅读全文
posted @ 2018-10-08 15:20 skybirdzw 阅读(1193) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace WebApplication1.core{ public delegate bool CompareHandler(D 阅读全文
posted @ 2018-10-08 15:18 skybirdzw 阅读(378) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace W 阅读全文
posted @ 2018-10-08 14:56 skybirdzw 阅读(334) 评论(0) 推荐(0) 编辑
摘要:yield用在foreach循环中,表示循环到下一次时返回的数据,主要作用是简化了foreach循环(其实用IEnumerable<>时没简化多少),与return结合使用,如: 除此之外还有yield break, 其表示跳出迭代,如: 参考:http://www.cnblogs.com/king 阅读全文
posted @ 2018-10-08 13:59 skybirdzw 阅读(116) 评论(0) 推荐(0) 编辑
摘要:1、先定义一个Model类 public class P1 { public string name { get; set; } public int age { get; set; } } 2、定义一个扩展方法 作用:用于处理集合数据,通过传入一个委托来实现 注意,扩展方法必须定义在静态类中,而且 阅读全文
posted @ 2018-10-08 13:57 skybirdzw 阅读(286) 评论(0) 推荐(0) 编辑
摘要:async和await 阅读全文
posted @ 2018-08-17 15:32 skybirdzw 阅读(186) 评论(0) 推荐(0) 编辑
摘要:async和await 阅读全文
posted @ 2018-08-17 11:53 skybirdzw 阅读(348) 评论(0) 推荐(0) 编辑
摘要:框架WedeNet 阅读全文
posted @ 2018-08-01 14:37 skybirdzw 阅读(261) 评论(0) 推荐(0) 编辑

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