tag:blogger.com,1999:blog-22825020.post116421606752261903..comments2023-02-13T13:53:36.957+00:00Comments on Golden Nuggets: Quick Tip: Checking for a reference type null in C#Joel Hammond-Turnerhttp://www.blogger.com/profile/10684302883494591548noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-22825020.post-63501158509077149022014-06-07T15:34:48.861+01:002014-06-07T15:34:48.861+01:00Thank you - just what I needed!Thank you - just what I needed!Anonymoushttps://www.blogger.com/profile/15958236961810254486noreply@blogger.comtag:blogger.com,1999:blog-22825020.post-68894395463062831062014-06-07T15:34:25.680+01:002014-06-07T15:34:25.680+01:00Thank you - just what I needed!Thank you - just what I needed!Anonymoushttps://www.blogger.com/profile/15958236961810254486noreply@blogger.comtag:blogger.com,1999:blog-22825020.post-42353383522856138082008-01-22T12:32:00.000+00:002008-01-22T12:32:00.000+00:00Update: Of course, I should really have been using...Update: Of course, I should really have been using to check for a null reference in IsNUll is the Object.ReferenceEquals method:<BR/><BR/>return Object.ReferenceEquals(thing, null)<BR/><BR/>Saves on all that casting (and hence improves performance)Joel Hammond-Turnerhttps://www.blogger.com/profile/10684302883494591548noreply@blogger.com