Extension methods with operator . always called, even if the object is null without throwing a NullReferenceException . Using the ?. He is never called. For instance:
using System; public class Program { public static void Main() { A a = null; ab();
Why is the extension method not called in this case? Is this a feature of ambiguos?
source share