How Can I check null for each object I am using in below chain?
forensicId = Message.Events.SMS.SMS_Mappings.FirstOrDefault().Bug.ForensicId;
More details: I want to access ForensicId from (tables/Proxies loaded by entity framework) BUG which is part of a SMS_Mappings and SMS_Mappings are again part of some table.
Is there any way where I can check if Message is not null or of events are not null and SMS is not null and so on within a single line.