Files
Ojt.Lectures/ExI.Event/MyClass.cs
T
2025-03-05 10:21:10 +09:00

20 lines
395 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExI.Event
{
class MyClass
{
public event EventHandler<EventArgs>? Complished;
public void Calc(int complexity)
{
Thread.Sleep(complexity);
Complished?.Invoke(this, EventArgs.Empty);
}
}
}