var handler = Event; if (handler != null) { handler(source, e); } #下同上 var handler = Event; handler?.Invoke(source, e);