随笔分类 -  c#

摘要:C# 中的委托(Delegate)类似于 C 或 C++ 中函数的指针。 委托(Delegate) 是存有对某个方法的引用的一种引用类型变量。引用可在运行时被改变。 委托就是用来储存方法的结构 委托(Delegate)特别用于实现事件和回调方法。所有的委托(Delegate)都派生自 System. 阅读全文
posted @ 2022-12-01 02:15 nice_0e3 阅读(184) 评论(0) 推荐(0)
摘要:c# 调用Windows API 前言 看点代码安抚浮躁的心 对应表 | API数据类型 | Windows API时的数据类型 | | | | | BOOL | System.Int32 | | BOOLEAN | System.Int32 | | BYTE | System.UInt16 | | 阅读全文
posted @ 2022-09-06 14:08 nice_0e3 阅读(520) 评论(0) 推荐(0)
摘要:c# 反射调用 反射加载DLL Assembly assembly = Assembly.Load("Ant.DB.SQLServer");//加载方式一:dll文件名(当前目录) Assembly assembly1 = Assembly.LoadFile(@"E:\MyReflection\My 阅读全文
posted @ 2021-11-11 19:53 nice_0e3 阅读(646) 评论(0) 推荐(0)
摘要:c# 基础语法 基础语法 第一个程序 using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Hello World"); } } 数据类型 阅读全文
posted @ 2021-11-10 15:16 nice_0e3 阅读(226) 评论(0) 推荐(0)