6 ms·You can always use the null coalescing operator. (foo as Bar ?? new Bar()).Method();by benJIman 16y agoYou can always use the null coalescing operator. (foo as Bar ?? new Bar()).Method();