AcornPublishing_essential-csharp-7e/EssentialCSharp-8.0/src/Chapter06/Listing06.12.PassingThisInAMethodCall.cs
// Non-nullable field is uninitialized. Consider declaring as nullable.
#pragma warning disable CS8618

namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter06.Listing06_12
{
    public class Employee
    {
        public string FirstName;
        public string LastName;
        public string? Salary;

        public void Save()
        {
            DataStorage.Store(this);
        }
    }

    class DataStorage
    {
        // Save an employee object to a file 
        // named with the Employee name
        public static void Store(Employee employee)
        {
            System.Diagnostics.Trace.WriteLine(
                $@"Writing employee ({
                    employee.FirstName} {employee.LastName
                    }) information to file.");
            // ...
        }
    }
}
