c# - good practises null object return -


i have question c# programming language, when method returns object, , example i'm forced return null, not clean code, best practise handle this? dont want return null.

in case signal "failed create object" c++ class constructs throws exceptions purpose.

some languages / projects prefer use exceptions more keep happy-pass happier while others may not.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -