I\'m trying to call an extension method on my own class, but it fails to compile. Consider the following lines of code:
public interface IHelloWorld { }
this.HelloWorld(); works with no casting.
this.HelloWorld();
Remember how Extension methods work:
You use an object and compiler would know the type then it could resolve it to the extension method. If no object is used, then it would not be able to resolve it.