Files
UP01TASK2/WpfApp1/WpfApp1/Coach.cs
2026-04-02 13:04:35 +05:00

27 lines
688 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WpfApp1
{
public class Coach
{
public string Surname { get; set; }
public string Name { get; set; }
public string Patronymic { get; set; }
public string Speciality { get; set; }
public string ShortFIO
{
get
{
string n = !string.IsNullOrEmpty(Name) ? $"{Name[0]}." : "";
string p = !string.IsNullOrEmpty(Patronymic) ? $"{Patronymic[0]}." : "";
return $"{Surname} {n}{p}";
}
}
public Coach() { }
}
}