随笔分类 - C#
摘要:官方文档 文档 生成 nupkg 文件 // 生成当前路径下 xxx.csproj nuget pack // 生成指定 xxx.csproj nuget pack xxx.csproj // 生成项目时默认是Debug,如果您需要Release,可以加上下面这个属性 nuget pack xxx.
阅读全文
摘要:Student stu1 = new Student(); Student stu2 = new Student(); Student stu3 = new Student(); ArrayList arrayList = new ArrayList() { stu1, stu2, stu3, };
阅读全文
摘要:F5 启动运行, 跳转下一个断点 F10 逐步调式 F11 逐句调试
阅读全文
摘要:常规 不建议 string name = "张三"; string message = "Hello" + name; ###优化后 string name = "张三"; string message = string.Format("Hello {0}", name); ###在升级 strin
阅读全文
摘要:###private 私有的 仅类的内部使用 ###protected 受保护的 类的内部和继承子类可以访问 ###internal 内部的 在同一命名空间可以访问 ###public 公共的 完全公开, 没有访问限制
阅读全文