Does .NET have a built-in EventArgs?

前端 未结 7 1248
梦如初夏
梦如初夏 2020-11-30 06:34

I am getting ready to create a generic EventArgs class for event args that carry a single argument:

public class EventArg : EventArgs
{
    // Prope         


        
7条回答
  •  忘掉有多难
    2020-11-30 06:44

    It does exist. At least, it does now.

    You can find DataEventArgs in some different Microsoft assemblies/namespaces, for instance Microsoft.Practices.Prism.Events. However these are namespaces that you might not find natural to include in your project so you might just use your own implementation.

提交回复
热议问题