Hello,
I have 2 objects Project and License. They both inherit from the object Entity (abstract class).
Now I have an extension method "GetNewId" that contains logic to get the next id in a list of entities.
I've defined this method as an extension method, but the problem is that List (which is also a list of entities) and List don't see this method.
I guess that this problem will occur with any generic list containing objects that inherit from the same base class.
Is there a solution for this problem?
edit: working in C#