会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小小林林
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
下一页
2021年8月30日
C# string引用类型参数不变性
摘要: 参考: 李志. Learning hard C#学习笔记 (图灵原创) (p. 86). 人民邮电出版社. Kindle 版本.
阅读全文
posted @ 2021-08-30 19:28 小小林林
阅读(58)
评论(0)
推荐(0)
2021年8月27日
C# 值类型和引用类型
摘要: 参考: 李志. Learning hard C#学习笔记 (图灵原创) (p. 86). 人民邮电出版社. Kindle 版本. 值 类型 通常 被 分配 到 线程 的 堆栈 上, 而 引用 类型 则 被 分配 到 托管 堆 上。 不同 的 分配 位置 导致 了 不同的 管理 机制, 值 类型 的
阅读全文
posted @ 2021-08-27 11:22 小小林林
阅读(65)
评论(0)
推荐(0)
C# 事件简单示例
摘要: 1 using System; 2 using System.Reflection; 3 4 namespace ConsoleApp1 5 { 6 class Program 7 { 8 // 自定义委托 9 public delegate void TestHandler(string msg)
阅读全文
posted @ 2021-08-27 09:52 小小林林
阅读(116)
评论(0)
推荐(0)
C# 委托简单示例
摘要: C# 委托类似于C函数指针示例使用: 1 using System; 2 using System.Reflection; 3 4 namespace ConsoleApp7 5 { 6 class Program 7 { 8 delegate void PrintHello(); 9 10 sta
阅读全文
posted @ 2021-08-27 09:36 小小林林
阅读(90)
评论(0)
推荐(0)
2021年8月24日
SandCastle C# 工程生成注释文档
摘要: 参考:文档API生成神器SandCastle使用心得 - edisoner - 博客园 (cnblogs.com) 下载 :SHFBInstaller_v2021.4.9.0
阅读全文
posted @ 2021-08-24 16:37 小小林林
阅读(49)
评论(0)
推荐(0)
2021年8月18日
C# 线程同步
摘要: 测试线程同步机制 AutoResetEvent: 1 static AutoResetEvent wakeup = new AutoResetEvent(false); 2 static void pthread_func() 3 { 4 while (true) 5 { 6 7 Console.W
阅读全文
posted @ 2021-08-18 11:17 小小林林
阅读(38)
评论(0)
推荐(0)
2021年8月17日
C# 移位运算
摘要: 今天测试程序发现一个比较有意思的事,如下代码: static void Main(string[] args) { List<byte> ts = new List<byte>() { 0x00, 0x01}; int aa = (int)ts[0] << 8 + (int)ts[1]; int b
阅读全文
posted @ 2021-08-17 10:08 小小林林
阅读(63)
评论(0)
推荐(0)
C# 移位运算
摘要: 今天测试程序发现一个比较有意思的事,如下代码: static void Main(string[] args) { List<byte> ts = new List<byte>() { 0x00, 0x01}; int aa = (int)ts[0] << 8 + (int)ts[1]; int b
阅读全文
posted @ 2021-08-17 10:08 小小林林
阅读(213)
评论(2)
推荐(0)
2021年8月12日
windows 调用win32 64位计数器
摘要: 在类定义中导入如下声明语句,可以直接在类方法中使用该函数。 [DllImport("kernel32")] extern static UInt64 GetTickCount64();
阅读全文
posted @ 2021-08-12 18:45 小小林林
阅读(70)
评论(0)
推荐(0)
2021年8月10日
json.net 字典json字符串相互转换
摘要: 参考官方连接: Deserialize a Dictionary (newtonsoft.com) 步骤1:vs 项目安装对应包 步骤2: 添加using 引用 using Newtonsoft.Json; 完整程序 程序代码: 1 using System; 2 using System.Coll
阅读全文
posted @ 2021-08-10 13:22 小小林林
阅读(403)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
下一页
公告