摘要:
一、窗体常用方法 Show(); // 展示 Hide(); // 隐藏 Close(); // 关闭 二、窗体常用事件 初始化的方法,优先级高于Load Load:加载,初始化时,窗体打开前 Click:点击窗口触发 阅读全文
posted @ 2025-06-14 17:07
市丸银
阅读(7)
评论(0)
推荐(0)
摘要:
一、 1、语法 MessageBox.show(); 注意:有返回值,返回值需要ToString(),根据返回值,判断选的那个按钮 2、案例 using System; using System.Collections.Generic; using System.ComponentModel; us 阅读全文
posted @ 2025-06-14 16:53
市丸银
阅读(9)
评论(0)
推荐(0)
摘要:
lambda表达式与js相似 1、完整版本(未省略) using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { Func<int, int, int> func = 阅读全文
posted @ 2025-06-14 15:09
市丸银
阅读(10)
评论(0)
推荐(0)
摘要:
delegate <T> 委托名<T>(T x, T y ...) 一、自定义 1、无参 using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { Dele dele 阅读全文
posted @ 2025-06-14 14:34
市丸银
阅读(4)
评论(0)
推荐(0)
摘要:
1、关键字 enum 2、默认从0开始,可以赋值 3、可以有多个枚举值 4、案例 using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { Person person 阅读全文
posted @ 2025-06-14 09:18
市丸银
阅读(6)
评论(0)
推荐(0)
摘要:
一、Action using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { Action action = Say; action(); Action<int> ac 阅读全文
posted @ 2025-06-14 08:51
市丸银
阅读(6)
评论(0)
推荐(0)
摘要:
接口使用泛型,并被类实现接口 using System; namespace ClassAndIn { internal class Program { static void Main(string[] args) { // int 类型 Studnet<int> studnet = new St 阅读全文
posted @ 2025-06-14 08:14
市丸银
阅读(5)
评论(0)
推荐(0)

浙公网安备 33010602011771号