コード例 #1
0
ファイル: Doctor.cs プロジェクト: SoooNick/NewWpfApp
 public Doctor(string firstName, string secondName, DoctorDegree doctorDegree, Specialization specialization, Sex sex)
     : base(firstName, secondName, sex)
 {
     DoctorDegree   = doctorDegree;
     Specialization = specialization;
 }
コード例 #2
0
ファイル: Doctor.cs プロジェクト: SoooNick/NewWpfApp
        public override string ToString()
        {
            var symbol = DoctorDegree.GetAttributeOfType <SymbolAttribute>();

            return($"{symbol.Symbol} {FirstName} {SecondName}");
        }