![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
人语西风
这个作者很懒,什么都没留下…
展开
-
Event-2
使用自带的EventHandlerusing System;//user the EventHandler to implment the eventnamespace Event2{ class GroupOwner { public string str; public event EventHandler broadCastEvent; public void broadCastMsg(string msg)原创 2020-06-21 23:26:38 · 296 阅读 · 1 评论 -
Indexer
using System;namespace Indexer{ class Demo { private string[] names = new string[size]; static public int size = 10; public Demo() { for(int i = 0; i < size; i++) { nam原创 2020-06-21 18:54:45 · 253 阅读 · 0 评论 -
delegate-2
using System;namespace Delegate2{ class Program { static void Main(string[] args) { Person p = new Person(); p.Greeting("张三", "en"); p.Greeting("张三", "ch");原创 2020-06-21 18:53:25 · 255 阅读 · 0 评论 -
delegate-1
using System;using System.Collections;using System.Collections.Generic;namespace Delegate{ class Program { //1.定义委托类型 public delegate int SumDelegate(IEnumerable src); public static int Meadia(SumDelegate sum)原创 2020-06-21 18:50:44 · 131 阅读 · 0 评论 -
Event
using System;namespace Event1{ class Me { private string _sender; public Me(string sender) { _sender = sender; } //1.定义委托 public delegate void DinnerHandler(string name); //2.定义事原创 2020-06-21 18:48:32 · 157 阅读 · 0 评论 -
C#-连接Mysql数据库
1.预备工作mysql 要开放权限,允许远程连接,这个不再赘述导入mysl.data包依赖若没有,项目->右键->包管理器->浏览,搜索,安装代码原创 2020-06-19 22:41:54 · 136 阅读 · 0 评论