Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 259 Bytes

MA0093.md

File metadata and controls

15 lines (13 loc) · 259 Bytes

MA0093 - EventArgs should not be null

using System;
class Test
{
    public event EventHandler MyEvent;

    void OnEvent()
    {
        MyEvent.Invoke(this, null); // non-compliant
        MyEvent.Invoke(this, EventArgs.Empty); // ok
    }
}