Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
今日、このコードに出会いました
AsyncInvoke(OnTimeMessageTimer, (object)null, (ElapsedEventArgs)null);
それは何か問題がありますか?
場合によっては、メソッドがオーバーロードされているときにこれを行う必要があります...呼び出しているメソッドをコンパイラに伝えるためです。null オブジェクトは null のままであり、安全です。
おそらくオーバーロードを解決するためにキャストが必要です