I have base class with abstract method
protected abstract Task<dynamic> ProcessInternalAsync(string query, TInput input);
It is overrided in derived classes.
To this method I want to add custom Attribute. In case it has property Inherited = true
I can get access to it from derived class.
How can I pass Type
of class from which this method is called If I want to set this attribute only to base class (In order to have this attribute for every derived class)?
Aucun commentaire:
Enregistrer un commentaire