Relative Content

Tag Archive for c#generics

Return derived class from the base class

We are developing an internal NuGet package which contains a ServiceRes and ServiceRes<T> classes which can be used to wrap a response from the service layer into a common structure. This is the code that we have currently: