随笔分类 - 【C# / .NET】
摘要:来源:https://github.com/zhangjk1980/ModbusTcpControl_WPF using System; using System.Collections.Generic; using System.Linq; using System.Text; public st
阅读全文
摘要:本文讨论C#中bool类型在位运算符 &(与运算) 和 |(或运算)的结果 &(与运算)在数值中运算的过程是先把 数字 转换成二进制, 同位均为1 则该位为1 |(或运算)在数值中运算的过程是先把 数字 转换成二进制, 同位中有1 则该位为1 bool bol1 = false, bol2 = fa
阅读全文
摘要:转载记录,原博客地址https://www.cnblogs.com/ryzen/p/14787171.html 在其他程序集访问internal类 前言# 本文将介绍如何在其他程序集访问internal类的方法 首先我们新建一个解决方案,其中同时新建两个类库FooALibray和FooALibray
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Cryptography
阅读全文
摘要:转载https://www.cnblogs.com/superfeeling/p/12104481.html ::感觉就像空间成员符如 using WIN = System.Windows; WIN::Window window = new Window(); global关键字,就是字面的意思,全
阅读全文
摘要:using System; using System.ComponentModel; using System.Linq.Expressions; using System.Reflection; public static class ClassExt { private static Membe
阅读全文