Open luizfbicalho opened 1 year ago
did you try to use ProduceResponsesType attribute
I think that this is very incomplete
Let me explain better
I havea Generic CrudController class
and in this method
IEnumerable<Method> BaseClassMethods(Class clas)
{
return clas.BaseClass.Methods;
}
I would lik to get back the current class
So in the template I would have
$BaseClassMethods[
]
and I would like to have a way to get the current class back, my last try is something like that
IEnumerable<(Class,Method)> BaseClassMethods(Class clas)
{
return clas.BaseClass.Methods;
}
And then each access in the template would expect a tuple and not a method, would that work?
not possible to do this in such way - iteration is not possible on tuples
Any option or I would need one class and 2 methods?
do small reproductible sample and I will take a look
copied from https://github.com/frhagn/Typewriter/issues/320
I have this method im my angular service tst
Because my controller has a base controller that is generic, a crud controller. How can I get in my base method, the current class to replace the method return type from generic to specific?