C# generates class library dll and call instance

This article explains how to use C# language to generate a class library and call it with a winform project

Table of contents

Create a C# class library project

Winform calls dll


Create a C# class library project

 

Write code

using System.Threading;

namespace ClassLibrary1
{
    public class Class1
    {
        private Timer myTimer = null;//定义定时器用于触发事件
        //定义公共的委托和调用
        public delegate void EventTestHandler(string message);
        public 

Guess you like

Origin blog.csdn.net/qq_30725967/article/details/131697655