-1
Good morning,
i have the following code in c# Asp.net-Core:
public class AgentsTrans : BaseTrans<AgentsTrans>
Basetrans is a generic base class that expects to receive a class as a parameter (Agentstrans).
In this case, it is working, but as there are many files and I would have to modify all one by one, I wonder if you know a way to pass this parameter in a generic way, making the base trans see the class you are inheriting without me having to refer tothere directly (as a this).
If anyone has a tip, it will be of great help.
In case you’re confused or don’t understand, I’ll try to clarify :)
Present the two classes, I do not understand why Agentstrans needs to inherit Basetrans and this depends on Agentstrans...
– Leandro Angelo