Which of the below given options are correct about the following statement related to extension methods ?
When class A is having method M with return type void and without input parameters, and when an extension method is added to the class with the same name with void return type and no input parameters.
Program will give compilation error.
Code is compiled, but extension method will never be called.
None of the above.
Back To Top