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 718461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:31:46+00:00 2026-05-14T05:31:46+00:00

Small design question here. I’m trying to develop a calculation app in C#. I

  • 0

Small design question here. I’m trying to develop a calculation app in C#. I have a class, let’s call it InputRecord, which holds 100s of fields (multi dimensional arrays) This InputRecordclass will be used in a number of CalculationEngines. Each CalculcationEngine can make changes to a number of fields in the InputRecord. These changes are steps needed for it’s calculation.

Now I don’t want the local changes made to the InputRecord to be used in other CalculcationEngine’s classes.

The first solution that comes to mind is using a struct: these are value types. However I’d like to use inheritance: each CalculationEngine needs a few fields only relevant to that engine: it’s has it’s own InputRecord, based on BaseInputRecord.

Can anyone point me to a design that will help me accomplish this?

  • 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-14T05:31:46+00:00Added an answer on May 14, 2026 at 5:31 am

    If you really have a lot of data, using structs or common cloning techniques may not be very space-efficient (e.g. it would use much memory).

    Sounds like a design where you need to have a “master store” and a “diff store”, just analogous to a RDBMS you have data files and transactions.

    Basically, you need to keep a list of the changes performed per calculation engine, and use the master values for items which aren’t affected by any changes.

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

Sidebar

Related Questions

I have a design problem which I would like some input on. Here are
I have an design idea about the appearence of a small program , which
I'm working on a small design project, part of which involved writing out text
I am trying to design a small site where most of (95%) of site
2 small parts to this question which hopefully will clear up some ambiguity for
I have been doing webdesign for a small business in Denmark, which alrady have
I have a small php app that I want to build a layer of
Design -- in a perfect world I have one abstract base class A with
A quick question about class design. I'm fairly new to Software Development and wondered
I'm in the design phase of a small project.I've an activity class and resource

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.