[543] Create Class from Generic Signature Request

I have the following base:

public abstract class Base<TRequest, TResponse, TArgs> : IGenericServiceProvider
where TRequest : class, new()
where TResponse : class, new()
where TArgs: Args {}

public abstract class Args { }

When I create a new descendent of Base, like this:

public class GetDetailsProvider : GenericServiceProvider<GetDetailsRequest, GetDetailsResponse, GetDetailsArgs>{}

The class GetDetailsArgs does not exist and R# gives me a lovely context action to create the class, thus:

public class GetDetailsArgs {}

What I'd like is if it could give me the following by inspecting the constraint on Base :

public class GetDetailsArgs: Args {}

Thanks,

Sean

1 comment
Comment actions Permalink

Hello,

We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-57143.

Best regards,
- Development Team.


0

Please sign in to leave a comment.