|
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace XmlSerializer
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Human human = new Human() { FirstName = "Kamal", LastName = "Qassas",BirthDate=new DateTime(1967,4,1) };
human.Sons.Add(new Human() { FirstName = "Ashraf", LastName = "Qassas",BirthDate = new DateTime(1984, 5, 2), Parent = human });
human.Sons.Add(new Human() { FirstName = "Ayman", LastName = "Qassas", BirthDate = new DateTime(1985, 6, 3), Parent = human });
human.Sons.Add(new Human() { FirstName = "Adham", LastName = "Qassas", BirthDate = new DateTime(1987, 7, 4), Parent = human });
human.Sons.Add(new Human() { FirstName = "Akram", LastName = "Qassas", BirthDate = new DateTime(1988, 8, 5), Parent = human });
human.Sons.Add(new Human() { FirstName = "Ahmad", LastName = "Qassas", BirthDate = new DateTime(1991, 9, 6), Parent = human });
human.Sons.Add(new Human() { FirstName = "Amjad", LastName = "Qassas", BirthDate = new DateTime(1992, 10, 7), Parent = human });
human.Sons.Add(new Human() { FirstName = "Mohammed", LastName = "Qassas", BirthDate = new DateTime(1998, 11, 8), Parent = human });
Application.Run(new XmlObjectSerializerDialog(human));
}
}
public class Human
{
public List<Human> Sons { get; set; }
public Human Parent { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime BirthDate { get; set; }
public int Id { get; set; }
public Human()
{
this.Sons = new List<Human>();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have advanced skills in desktop apps development, i have built many apps for many corporations.
i'm using the follow languages in my work:
1- C# Language.
2- VB6 Language.
3- Asp.net using C#.
4- Crystal Reports.
i have more than 7 experience years in coding and programming.
Systems and apps Developed by Us:
1-E-Archive System (VB6,Supports multi DataBase Engins).
2-SMS System (Multi languages such VB6,C#,Asp.Net and Gizmox).
3-Multi Camera Monitor System-Motion Detection and record(C#).
4-Administrative Evaluation System (Asp.net).
5-E-Clinic System (C#-using my business layer generator,Supports multi DataBase Engines).
6-Data Access Layer Generator Framework(C#).
7-Sip Provider -VOIP- Softphone (C#- for Italian company).
8-Training course Manager System(C#-for UCAS).
9-Computer Exam System (VB6,Oracle DataBase).
10-Dialer System (VB6).
11-Implement Google API using C# (Translation and web Search).
12-Print Management Enterprise(C#)
13-Elections System (C#- using my business layer generator).
14-Advanced English competition (VB6).
15-Remote USB Sharing (C/C++,VB6).
16-Watch Attendance (C/C++,VB6).
17-Tube Spy (C#).
18-AdminYourTube (C#)
19- Transport Reservation System (C#,Asp.net,Ajax,Jquery)
Please visit my elance URL
http://ashrafnet.elance.com