Exemple #1
0
 public Employee(int id, string fname, string lname, Department dep)
     :this()
 {
     Id = id;
     FirstName = fname;
     LastName = lname;
     //Salary = salary;
     Department = dep;
 }
Exemple #2
0
        static void Main(string[] args)
        {
            Department dep = new Department(506, "IT Heaven");
            Employee e = new Employee(101, "Martin", "Hromek", dep);

            Console.WriteLine("Serializing...");

            //XmlSerialization(e);
            //BinarySerialization(e);
            JsonSerializovat();

            Console.WriteLine("Finish.");
        }