RuntimeInformation and Environment Fetching Information Reflection to Fetch Information Fetching Property Values Reflection to Fetch Attribute Value[......] 继续阅读

2020年2月29日 0条评论 120点热度 0人点赞 痴者工良 阅读全文

RuntimeInformation、Environment 获取信息 反射获取信息 获取属性值 反射获取特性值 获取某个属性的值以及别名 反射获取信息 使用 总结 [......] 继续阅读

2020年2月29日 0条评论 2998点热度 0人点赞 痴者工良 阅读全文

背景: When debugging tests, it's necessary to use NSwag.AspNetCore to provide swagger services, but it's not needed for formal release deployment. The N[......] 继续阅读

2020年2月28日 2条评论 116点热度 2人点赞 痴者工良 阅读全文

背景: 调试测试 Debug 时需要使用 NSwag.AspNetCore ,提供 swagger 服务,但是正式发布部署,不需要用到。 NSwag.AspNetCore 的库文件达到6MB。 可以在项目文件中使用如下条件 Condition="'$(Configuration)[......] 继续阅读

2020年2月28日 2条评论 4655点热度 2人点赞 痴者工良 阅读全文

This query is particularly useful for multi-table joins, as in join queries, some field data may be empty, and directly returning null is not very use[......] 继续阅读

2020年2月27日 0条评论 4762点热度 0人点赞 痴者工良 阅读全文

这个查询对于多表联查特别有用,因为连接查询,有可能部分字段数据为空,直接返回null不太友好。 下面使用三个表来演示 SELECT eg.GroupId, eg.GroupName, egl.EquipGroupListId, egl.StaNo, egl.E[......]继续阅读

2020年2月27日 0条评论 4746点热度 0人点赞 痴者工良 阅读全文

如果写 C# 时,使用了分析器,很可能会提示 string.ToString() 的行为可能因当前用户的区域设置而异 这里针对某些字符/字符串转换时出现的问题,做个列表。 IFormatProvider 这个接口用于实现字符串如何格式化转为数值类型。一般来说666、0.666 这样的数没问题,但是[......] 继续阅读

2020年2月26日 4条评论 124点热度 3人点赞 痴者工良 阅读全文

如果写 C# 时,使用了分析器,很可能会提示 string.ToString() 的行为可能因当前用户的区域设置而异 这里针对某些字符/字符串转换时出现的问题,做个列表。 IFormatProvider 这个接口用于实现字符串如何格式化转为数值类型。一般来说666、0.666 这样的数没问题,但是使[......] 继续阅读

2020年2月26日 4条评论 5101点热度 3人点赞 痴者工良 阅读全文

.NET Core does not have the functionality to obtain CPU usage and other information on Linux, so don't hold your breath. static void Main(stri[......]继续阅读

2020年2月26日 0条评论 104点热度 6人点赞 痴者工良 阅读全文

.NET Core 中没有获取 Linux 的 CPU使用率等信息的功能,死心吧。 static void Main(string[] args) { Console.WriteLine("系统运行情况");[......]继续阅读

2020年2月26日 0条评论 6253点热度 6人点赞 痴者工良 阅读全文

之前个人理解错误,浮点数转换少了一步。因为当时看视频和别人博客的时候,发现很多人没有说清楚一些很细致的东西。首先,浮点数的表示,有 定点数据表示 浮点数据表示 IEEE754 定点数据表示 原理是将一个浮点数的整数和小数部分各自转为二进制,最高位表示符号位。例如使用定点数据表示,表示 -86.[......] 继续阅读

2020年2月23日 2条评论 185点热度 1人点赞 痴者工良 阅读全文

之前个人理解错误,浮点数转换少了一步。 因为当时看视频和别人博客的时候,发现很多人没有说清楚一些很细致的东西。 首先,浮点数的表示,有 定点数据表示 浮点数据表示 IEEE754 定点数据表示 原理是将一个浮点数的整数和小数部分各自转为二进制,最高位表示符号位。 例如使用定点数据表示,表示 -[......] 继续阅读

2020年2月23日 2条评论 4755点热度 1人点赞 痴者工良 阅读全文

Example: Determining whether a string consists of alphanumeric characters and underscores: using System; using System.Diagnostics; using System.Text.R[......]继续阅读

2020年2月23日 4条评论 3464点热度 0人点赞 痴者工良 阅读全文

示例: 判断字符串是否由字母数字下划线组成: using System; using System.Diagnostics; using System.Text.RegularExpressions; namespace ConsoleApp6 { class Program {[......]继续阅读

2020年2月23日 4条评论 3440点热度 0人点赞 痴者工良 阅读全文

In C#, Parallel and Task.WhenAll are both used for parallel computing. Parallel is generally used only for CPU-bound operations. Refer to this link fo[......] 继续阅读

2020年2月13日 3条评论 3313点热度 0人点赞 痴者工良 阅读全文

C# 中,Parallel 和 Task.WhenAll 都用于并行计算。 Parallel 一般只用于 CPU 集中的操作。 查看 https://www.cnblogs.com/scmail81/archive/2018/08/22/9521096.html 学习。 Task.WhenAll主要[......] 继续阅读

2020年2月13日 3条评论 3287点热度 0人点赞 痴者工良 阅读全文

Computer System Architecture - Data Representation Table of Contents Computer System Architecture - Data Representation Data Representation Floating-[......] 继续阅读

2020年2月5日 0条评论 124点热度 0人点赞 痴者工良 阅读全文

计算机系统结构-数据表示 目录 计算机系统结构-数据表示 数据表示 浮点数 浮点数标准 例题 计算机系统结 数据表示:数据表示是指能由计算机硬件直接识别和引用的数据类型。(例如定点数浮点数) 表现在什么地方:表现在它有对这种数据类型进行操作的指令和功能部件。 数据结构种类:串,队,列,栈,阵列,[......] 继续阅读

2020年2月5日 0条评论 3698点热度 0人点赞 痴者工良 阅读全文

K8S Installation Tutorial on Ubuntu [TOC] 1. Update System Sources If the system's default mirror address is located abroad, downloads may be slow. Yo[......] 继续阅读

2020年2月4日 1条评论 108点热度 3人点赞 痴者工良 阅读全文

在 Ubuntu 上安装 K8S教程 [TOC] 1,更新系统源 如果系统本身自带得镜像地址,服务器在国外,下载速度会很慢,可以打开 /etc/apt/sources.lis 替换为国内得镜像源。 apt upgrade 2,更新软件包 将系统得软件组件更新至最新稳定版本。 apt update 3[......] 继续阅读

2020年2月4日 1条评论 5437点热度 3人点赞 痴者工良 阅读全文
12