public Employee(int id, string fname, string lname, Department dep) :this() { Id = id; FirstName = fname; LastName = lname; //Salary = salary; Department = dep; }
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."); }