コード例 #1
0
        public override string ToString()
        {
            string result = "\n";

            result += $"ID: {Id}\n";
            if (string.IsNullOrEmpty(Name))
            {
                result += $"Name: Data not available\n";
            }
            else
            {
                result += $"Name: {Name}\n";
            }

            result += $"Employer: {Employer?.ToString() ?? "Data not available"}\n";
            result += $"Location: {Location?.ToString() ?? "Data not available"}\n";
            result += $"Position Type: {PositionType?.ToString() ?? "Data not available"}\n";
            result += $"Core Competency: {CoreCompetency?.ToString() ?? "Data not available"}\n";

            result += "\n";

            return(result);
        }
コード例 #2
0
 public Job(Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency) : this("No Data", employerName, employerLocation, jobType, jobCoreCompetency)
 {
 }
コード例 #3
0
 public Job(string name, Employer employer, Location location, PositionType jobType, CoreCompetency coreCompetency) :
     base(name, employer, location, jobType, coreCompetency)
 {
 }