[FEATURE REQ] Page<T> and Response<T> should implement or inherit from a common ancestor
See original GitHub issueLibrary or service name. What library or service is this request related to? Azure.Core
Is your feature request related to a problem? Please describe.
Currently, Page<T>
is a basic class that has no inheritance or implementation chain. However, it is in fact very similar to a Response<T>
- it is a page of results that come down through a Response
. Accordingly, both types have the GetRawResponse()
method. Therefore, there should be some common ancestor between the two so that methods can accept an argument that matches either of these types. Currently, there is no clean way of achieving this behavior.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Why is the diamond case with its common ancestor used to ...
The problem with diamond inheritance is not so much shared behaviour but shared state. As you can see, Java in fact has always...
Read more >How does C++ handle multiple inheritance with a shared ...
But the methods have to be implemented in each class that inherits the interface. There is however large class of interfaces, where it...
Read more >Paget's disease of bone
Paget's disease of bone is a condition involving cellular remodeling and deformity of one or more bones. The affected bones show signs of...
Read more >Calabria as a Genetic Isolate: A Model for the Study of ...
Thus, we used a population genomics approach to estimate the inheritance from a common ancestor of the APPA713T mutation in the Belgian and...
Read more >Genetic Prion Disease - GeneReviews
Genetic prion disease is inherited in an autosomal dominant manner. Some individuals diagnosed with genetic prion disease may have a parent ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t think the use case is common enough to motivate adding this feature.
Ah, sorry, I missed that.