摘要: 打开记事本,输入下面代码,然后把文件后缀改为.snippet 。然后通过vs2019 工具》代码段管理导入。 <?xml version="1.0" encoding="utf-8"?> <CodeSnippets xmlns="http://schemas.microsoft.com/Visual 阅读全文
posted @ 2021-10-29 20:05 小林野夫 阅读(172) 评论(0) 推荐(0)
摘要: 微软官方教程:https://docs.microsoft.com/zh-cn/dotnet/framework/reflection-and-codedom/viewing-type-information 元編程(英語:Metaprogramming),又譯超編程,是指某类计算机程序的编写,这类 阅读全文
posted @ 2021-10-29 16:26 小林野夫 阅读(428) 评论(0) 推荐(0)
摘要: 特性应用 取得枚举类型的注释 平时开发时,经常会用到枚举类型及其相关判断,而有时我们想显示枚举类型的注释,怎么办?下面用特性来解决这个问题。 namespace AttributeDemo.CustomAttributes { public class RemarkAttribute : Attri 阅读全文
posted @ 2021-10-29 13:15 小林野夫 阅读(445) 评论(0) 推荐(0)
原文链接:https://www.cnblogs.com/cdaniu/