Is there a way to have a C# class handle its own null reference exceptions

前端 未结 7 1155
青春惊慌失措
青春惊慌失措 2021-02-05 05:05

Question

I\'d like to have a class that is able to handle a null reference of itself. How can I do this? Extension methods are the only way I can think

7条回答
提交回复
热议问题