CS1106 Extension method must be defined in a non-generic static class


  • I had a base class, that worked fine.
    Until some code was added and on the deffinition line of the class i got the error as mentioned in the topic.

    At first i had no idea what went wrong, (as there had been a lot of changes to its inner working).
    Tough it turned out there was nothing wrong with the decoration of the base class. ( public abstract class BaseCamera )

    The problem was that somewhere deep in this code a function got in that had a "this" in front of a parameter.
    .. I think the error should have been raised at the location of that function and not in the definition line of the class
    Wednesday, June 20, 2018 7:21 AM