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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:38:01+00:00 2026-05-27T19:38:01+00:00

I have a work-space object containing a list of target objects with their properties.

  • 0

I have a work-space object containing a list of target objects with their properties.

This is very simple to configure using Spring.Net. But the thing is that the target objects may be changed by the user (on the GUI): some can be added, removed and their properties may change.

I need to serialize the new work-space configuration on the fly to have it persistent when my app goes down.

Is there’s any automatic way to do that using Spring.Net, without having to deal with XML serialization? Or, is there’s a way to simplify the XML serialization in this case?
Is it logical to use Spring.Net in this case at all?

Thanks!

  • 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-27T19:38:02+00:00Added an answer on May 27, 2026 at 7:38 pm

    You should not use your dependency configuration as a means of persistent storage; it wasn’t built for that purpose. Think of the dependency configuration as a static configuration that you ship with your application.

    If users of your application can change an object, then this generally isn’t an object you should configure using a dependency injection framework. You should consider saving and retrieving those objects using a database, a file (xml, plain text) or some other persistent store.

    Consider injecting an object (let’s call it TargetManager) on your WorkSpace that manages the Target objects. The TargetManager can access the persistent store and the WorkSpace wouldn’t know how the TargetManager works; only that it’ll give him Targets.

    So for the static configuration part of your application you can definitely use Spring.NET, but for the saving and retrieving of targets you shouldn’t use Spring.NET dependency injection features.

    Xml serialization can be very simple in .net, but that really depends on the type of object you want to serialize. We’d need some more details on the objects you want to persist to help out there.

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

Sidebar

Related Questions

I work for a market research company in the online space. We have been
I have some code that returns a struct containing 2 objects (declared as id
I have a large work space which has many source files of C code.
i have this picking function but it doesn't seems to work. the function should
This question burns my brain. I have an object on a plane, but for
I have objects containing Quartz-2D references (describing colors, fill patterns, gradients and shadows) in
I have a silly use case for eclipse: At work, they use 2 spaces
We have set up a SharePoint meeting workspace (using WSS 3.0) for our weekly
I have a MS-Visual Studio 2005 workspace having all c code. This application(exe) allocates
I have an object that I'm serializing that contains a lot of doubles and

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.