change
public class LinqHelper
to
public static class LinqHelper
Following points need to be considered when creating an extension method:
- The class which defines an extension method must be
non-generic,staticandnon-nested - Every extension method must be a
staticmethod - The first parameter of the extension method should use the
thiskeyword.