C# Get Name of Derived Type from Inside base Class

前端 未结 4 1915
死守一世寂寞
死守一世寂寞 2021-02-05 02:39

During a debug session, it\'s important for me to identify the name of the actual derived class in the debug info of specific instances.

I tried using this

4条回答
  •  死守一世寂寞
    2021-02-05 02:50

    When raising an event, be sure to pass the real sender to the sender property. The sender object in the listening class should correctly point to the child class that raised the event.

提交回复
热议问题