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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:39:14+00:00 2026-05-14T15:39:14+00:00

I have a list of Gesture classes in my application: List<Gesture> gestures = new

  • 0

I have a list of “Gesture” classes in my application:

List<Gesture> gestures = new List<Gesture>();

These gesture classes are pretty simple:

public class Gesture
{
    public String Name { get; set; }
    public List<Point> Points { get; set; }
    public List<Point> TransformedPoints { get; set; }    

    public Gesture(List<Point> Points, String Name)
    {
        this.Points = new List<Point>(Points);
        this.Name = Name;
    }
}

I would like to allow the user to both save the current state of “gestures” to a file and also be able to load a file that contains the data of the gestures.

What is the standard way to do this in C#?

Should I use Serialization? Should I write a class to handle writing/reading this XML file by hand myself? Are there any other ways?

  • 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-14T15:39:14+00:00Added an answer on May 14, 2026 at 3:39 pm

    Take a look at XmlSerializer type and XmlSerialization in .net

    Here.. found an example that does what you are looking for
    http://www.switchonthecode.com/tutorials/csharp-tutorial-xml-serialization

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

Sidebar

Related Questions

I have list of groups: <select multiple=multiple name=groups[] id=groups[] class=myclass> <option value=1>Employee</option> <option value=2>Suppliers</option>
i have list of items of following class: public class MonthlyConsumption : UserData {
I have List with n items. I wish transform my list to new list,
I have a listbox which has all the names for a list of Gesture
I have List<string> strs; double[] values; where the values array contains the value of
I have List<string> strs; double[] values; where the values array contains the value of
I have a little engine (defined as public class ScreenManager : DrawableGameComponent ) to
I have a new gesture, (touch, drag onto other, release) which I would like
I have List collection with around 35,000 strings Typical string looks like this: <i>füüs</i>ampri
I have a simple application with two views, one is a TableView and the

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.