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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:19:22+00:00 2026-05-23T21:19:22+00:00

Im just wondering how I go about saving an instance of a class to

  • 0

Im just wondering how I go about saving an instance of a class to the silverlight isolated storage. I also need to know if it possible that the class that we save to isolated storage can have a list of instances of another class. Here is an example of the situation:

Public Class MySettingsToStore

    private mPropertyA as string
    Public Property PropertyA() As string
    Get
        Return mPropertyA 
    End Get
    Set(ByVal value As string)
        mPropertyA = value
    End Set
    End Property

    private mlstOfSubClass as List(Of MySubClass)
    Public Property lstOfSubClass() As List(Of MySubClass)
    Get
        Return mlstOfSubClass 
    End Get
    Set(ByVal value As List(Of MySubClass))
        mlstOfSubClass = value
    End Set
    End Property
End Class

Public Class MySubClass
    private mPropertyA as string
    Public Property PropertyA() As string
    Get
        Return mPropertyA 
    End Get
    Set(ByVal value As string)
        mPropertyA = value
    End Set
    End Property

   private mPropertyB as string
    Public Property PropertyB() As string
    Get
        Return mPropertyB 
    End Get
    Set(ByVal value As string)
        mPropertyB = value
    End Set
    End Property


End Class

So basically on load of the application I want to check if there is an instance of MySettingsToStore in the isolatedStorage if not I will create one and save it (and update it when needed), so the next time the application is started there will be an instance in the isolatedstorage to load.

Does anyone know how I go about this? Hope someone can help. Thanks in advance

  • 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-23T21:19:23+00:00Added an answer on May 23, 2026 at 9:19 pm

    One word: XMLSerializer

    To elaborate a bit, you can serialize any class with public properties to a stream (e.g. in Isolated storage) and reverse that process on startup to load an existing file in ISO storage.

    If a property is a collection of other classes, they too will be stored and restored by using XMLSerializer.

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

Sidebar

Related Questions

I was just wondering about something. I have a frame that loads pages and
I'm just wondering what are you thinking about DIV-tag inside FORM-tag? I need something
I was just wondering about why should I use property in a class instead
I just wondering about this.It is said that .NET is better than MFC in
Just wondering about this, is it possible to use Django with the Google Apps
Just wondering about the performance impact of copying very large php variables. For example
Just wondering about this code below... when I turn off my internet connection and
Just wondering about some practice about this; I have made a simple visual C#
I'm just wondering about large projects - say an airlines reservation system, how many
I'm new to web development and am just wondering about best practices for java

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.