![]() ![]() NET give us the name, or at least the type of the object reference, which is null?. Now, something has obsessed my mind for several months, and that is: Likewise, if we want to remove the bug, we do need to know which object is null. You should get more information, if you want to detect which man is the threatening man. It's like telling you, when you are the security agent of a seminar, that a man among 100 attendees is a terrorist. However, in a method where we have almost 20 objects, having a log which says an object is null, is really of no use at all. We're launching a system, and we sometimes get the famous exception NullReferenceException with the message Object reference not set to an instance of an object. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |