© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
Ab

❔ Design Question

Let's say I've got a class
Application
Application
which drives the program. And let's say during execution of the program, it makes regular calls to a class library I have. Now depending on the response from the library, it will change the state of the program.

The question is, should the library be able to change the state of the program directly? The way it would do this is by something like
Application.stateChange()
Application.stateChange()
. I felt iffy about this because it means
Application
Application
calls the library and the library calls
Application
Application
. Is a better way to do this just that the library returns a status code?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

design question
C#CC# / help
2mo ago
❔ Design question
C#CC# / help
3y ago
Interface Design Question
C#CC# / help
3y ago
❔ Question about design
C#CC# / help
3y ago