AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/Utilities/ProjectRename/ProjectRename.Test/MockProject/Chapter05/Listing5_15-29/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AddisonWesley.Michaelis.EssentialCSharp3.Chapter5.Listing5_09to14
{


class Program
{
    static void Main()
    {
        Employee employee1;

        Employee employee2 = new Employee();
        employee2.SetName("Inigo", "Montoya");
        employee2.Save();

        // Modify employee2 after saving.
        IncreaseSalary(employee2);

        // Load employee1 from the saved version of employee2
        employee1 = DataStorage.Load("Inigo", "Montoya");

        Console.WriteLine(
            "{0}: {1}",
            employee1.GetName(),
            employee1.Salary);

        // ...
    }

    static void IncreaseSalary(Employee employee)
    {
        employee.Salary = "Enough to survive on";
    }
}



}
