摘要: 我要使用名为 prop 的代码段 自动生成实体属性外侧代码快捷键是 CTRL+K,S插入代码段的快捷键是CTRL+K ,X 因为 prop 在外侧代码里没有 每次要 用插入代码段 功能 选择很多次才选定到prop 有没有办法把prop 添加到 外侧代码里 解决:<SnippetTypes>节里面加入 阅读全文
posted @ 2019-08-19 16:04 木狼 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 1.自动属性 键入prop,再按两次tab键,会生成自动属性代码。 public int MyProperty { get; set; }通过实验发现,输入pr,pro,proc等,再按两次tab键,同样会生成自动属性代码段。 2.class 键入class,再按两次tab键,会生成类定义代码。 c 阅读全文
posted @ 2019-08-19 15:39 木狼 阅读(1604) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://yq.aliyun.com/articles/337756 1、__arglist 让我们先从__arglist开始。 __arglist是用来给方法传送参数。通常我们是通过函数头部指定的参数列表给方法传递参数的。如果我们想要给方法传递一组新的参数,我们需要重载方法。如果我 阅读全文
posted @ 2019-08-19 12:12 木狼 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 组元功能:传递多个值。 1.可以取代out //使用out public void Test(out int a,out string b) { a=1; b="hello world" } //使用Tuple public Tuple<int,string> Test() { return new 阅读全文
posted @ 2019-08-19 11:57 木狼 阅读(674) 评论(0) 推荐(1) 编辑