示例#1
0
        public string Status(GetSubordinateEmployees getSubordinates)
        {
            var sb = new StringBuilder(Status());

            sb.AppendLine();
            var subordinates = getSubordinates(this).OrderBy(emp => emp.LastName);

            foreach (var emp in subordinates)
            {
                sb.Append('\t').AppendLine(emp.ShortStatus());
            }

            return(sb.ToString());
        }
示例#2
0
 public IEnumerable <Employee> DirectSubordinates(GetSubordinateEmployees getSubordinates)
 {
     return(getSubordinates(this));
 }