Generated c# interface for Client with internal modifier on DTO classes should be internal too
See original GitHub issueA public interface ist generated for a client that has access modifier set to internal
and DTO classes have access modifier internal
too.
The generated interface should have internal
modifier too.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
internal - C# Reference
The internal keyword is an access modifier for types and type members. This page covers internal access. The internal keyword is also part ......
Read more >c# - Using Private setters for Ids while writing tests
Creating interfaces for each model data class seems excessive. Is specifying an internal setter and making the class visible to the testing ...
Read more >What is the point of using DTO (Data Transfer Objects)?
6 Answers. DTO is a pattern and it is implementation (POJO/POCO) independent. DTO says, since each call to any remote interface is expensive, ......
Read more >DTO Generator
JPA Buddy provides an Entity from POJO action that helps to generate a JPA entity from any java/kotlin class. This feature may be...
Read more >Is the C# internal keyword a code smell?
In this post, I am going to show why I think the internal keyword, when put on class members, is a code smell...
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 Free
Top 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
If the DTOs are being generated as internal, then the interface should follow the same, otherwise you will get
[CS0050] Inconsistent accessibility: return type… So the simple fix is to use whatever access modifier used for DTOs for the interface also.
Ping me if you have time to help here… thx