12 2022 档案

摘要:https://learn.microsoft.com/en-us/archive/msdn-magazine/2017/may/net-core-cross-platform-code-generation-with-roslyn-and-net-core https://www.tugberku 阅读全文
posted @ 2022-12-13 19:55 dewxin 阅读(116) 评论(1) 推荐(0) 编辑
摘要:C#的序列化库很多通过注解Attribute来实现,比如Protobuf-net,Messagepack等。如果手动添加注解,会比较麻烦,尤其在切换序列化库的时候,需要更改对应的注解。 这里实现了一个使用Mono.Cecil来自动添加注解的类,当程序编译后,会修改对应的dll来实现效果。 遇到的坑: 阅读全文
posted @ 2022-12-08 15:41 dewxin 阅读(107) 评论(0) 推荐(0) 编辑
摘要:最近用反射,想找到一个接口的父接口,发现baseType是null。 但是dotpeek反射里面显示是有baseType的。 搜了一下,意识到你只能 implement 一个接口,而不能inherit一个接口。所以一个接口想找到父接口应该再次使用GetInterfaces函数。 阅读全文
posted @ 2022-12-03 16:44 dewxin 阅读(58) 评论(0) 推荐(0) 编辑
摘要:《TCP/IP Illustrated Volume1 The Protocols》第14章的总结中提到 Karn’s algorithm removes the retransmission ambiguity problem by preventing the use of RTT measur 阅读全文
posted @ 2022-12-03 14:26 dewxin 阅读(245) 评论(0) 推荐(0) 编辑

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