Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6983001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:21:43+00:00 2026-05-27T18:21:43+00:00

In my app I’m using a single class that holds the configuration for some

  • 0

In my app I’m using a single class that holds the configuration for some process. Now, I’m trying to break it in smaller peaces, as you can see in the class diagram below:

enter image description here

  1. Do you think this design pattern is ok?
  2. What about the FilterOnOff class?
  3. Should I use structs? In this case I will not be able to derive from FilterOnOff to get the “Acttive” state.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:21:44+00:00Added an answer on May 27, 2026 at 6:21 pm

    Just guess, that you split class manager of configuration into smaller pieces, in order to be able to persist a smaller piece of configuration of some specific entity, and not all information, which is probably not relevant to that entity.

    In this case:

    1. Don’t see serious problems, also cause it’s difficult to say something really useful, cause depends how your app is structured.

    2. If you think that the shared domain of the properties in your case consist of single Active property, it’s ok.

    3. No, do not use structs. Structs can be useful, for example, to boost a performance in several cases, as stack allocation is really fast. For configuration management it’s not a case. Use full flexibility which given to you by reference types in C#.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

App Store We have been developing an app for quite some time now for
Our app (already deployed) is using an Access/Jet database. The upcoming version of our
My app interacts with both Oracle and SQL Server databases using a custom data
Web app runs on Tomcat. Datasource is configured with Spring configuration, and is used
My app needs to process text files during a batch process. Occassionally I receive
My app uses the android.support.v4.view.ViewPager class. For each page in the ViewPager, I want
We're building an app, our first using Rails 3, and we're having to build
App store approval guideline says that Apps that send Push Notifications without first obtaining
app.get(/:name?/:group?, function(req, res){... is matching files that are in my public directory. So if
The app I am writing deals with utility service addresses, and right now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.