question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated c# interface for Client with internal modifier on DTO classes should be internal too

See original GitHub issue

A 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:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
PolaEdwardcommented, May 27, 2021

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.

0reactions
RicoSutercommented, Jun 5, 2018

Ping me if you have time to help here… thx

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found