Extension methods must be defined in a non-generic static class

change

public class LinqHelper

to

public static class LinqHelper

Following points need to be considered when creating an extension method:

  1. The class which defines an extension method must be non-genericstatic and non-nested
  2. Every extension method must be a static method
  3. The first parameter of the extension method should use the this keyword.

Leave a Comment

error code: 523