Welcome to the Quiz on Extension Methods in C#

What is an Extension method?
An extension method is created as
An extension method is defined in a
A sealed class can also have extension methods
An extension method can override an existing method of a class
What is the minimum number of parameters required to define an extension method?
What should be the type of first parameter to an extension method?
Which of the following keyword is proceeded by the first parameter of an extension method?
An extension method is invoked as
The extension method isValid() is applicable on which type?int a, b, c;
a = 100;
b = 25;
c = 35;
bool b1 = a.isValid(b, c);

Leave a Reply

Your email address will not be published. Required fields are marked *