![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#.net
文章平均质量分 62
青云ing
这个作者很懒,什么都没留下…
展开
-
Net 6 控制台配置文件读取
一、使用App.Config作为配置文件1、项目增加应用程序配置文件App.config2、文件设置为“如果较新则复制”3、示例文件<?xml version="1.0" encoding="utf-8" ?><configuration> <appSettings> <add key="DBConString" value="数据库连接字符串"/> </appSettings></configuration&g原创 2022-02-07 15:55:53 · 3746 阅读 · 0 评论 -
C# Coding Conventions
Coding conventions serve the following purposes:They create a consistent look to the code, so that readers can focus on content, not layout. They enable readers to understand the code more quickly by making assumptions based on previous experience. The转载 2022-01-26 18:10:46 · 225 阅读 · 0 评论 -
委托(C# 编程指南)
委托是一种引用类型,表示对具有特定参数列表和返回类型的方法的引用。 在实例化委托时,你可以将其实例与任何具有兼容签名和返回类型的方法相关联。 你可以通过委托实例调用方法。委托用于将方法作为参数传递给其他方法。 事件处理程序就是通过委托调用的方法。 你可以创建一个自定义方法,当发生特定事件时,某个类(如 Windows 控件)就可以调用你的方法。 下面的示例演示了一个委托声明:C#public delegate int PerformCalculation(int x, int y);可将转载 2021-08-18 19:06:19 · 156 阅读 · 0 评论