I have created a class named BookingPassengerDetails and referred an object in App.xaml.cs to store set of values across the project. How can I serialize the object to xml file.
BookingPassengerDetails.cs contains the following
public class BookingPassengerDetails
{
public string From { get; set; }
public string To { get; set; }
public string ShortFrom { get; set; }
public string ShortTo { get; set; }
public string NumberofAdults { get; set; }
public string NumberofChildren { get; set;}
public string NumberofInfant { get; set; }
public List<Person> Person { get; set; }
}
My object reference
public static BookingPassengerDetails passengerObject;
I stored the values as
App.passengerObject.NumberofAdults=TextblockName.Text;
No comments:
Post a Comment