-
Notifications
You must be signed in to change notification settings - Fork 0
Event Support
Cy Scott edited this page Aug 23, 2021
·
2 revisions
An interface can have an event field and that field will be implemented. Here is a simple example of how it works:
[Generate]
public interface IHaveAnEvent
{
event Action Update;
}
The generated code will look like:
public class HaveAnEventModel : IHaveAnEvent
{
public event System.Action Update;
public HaveAnEventModel()
{
}
}