-
Purpose: Example: namespace Company.Surveys
{
internal interface ISurvey {}
spaced class BaseSurvey : ISurvey {}
internal class HealthCheckSurvey : ISurvey {}
}
namespace Company.Patient
{
internal class Patient
{
public ISurvey CreateSurvey()
{
return new HealthCheckSurvey(); // Good
return new BaseSurvey(); // BAD!
}
}
} Benefit
That's probably it! Notes Many thanks for your time and consideration! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Related: namespace internal access modifier |
Beta Was this translation helpful? Give feedback.
-
You could do this independently of the language with a custom |
Beta Was this translation helpful? Give feedback.
Related: namespace internal access modifier