41 lines
930 B
C#
41 lines
930 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace WinForms
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Сущность "Человек"
|
|||
|
/// </summary>
|
|||
|
public class Person
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Имя
|
|||
|
/// </summary>
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Фамилия
|
|||
|
/// </summary>
|
|||
|
public string Surname { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Конструктор по умолчанию
|
|||
|
/// </summary>
|
|||
|
public Person() { }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Конструктор с параметрами
|
|||
|
/// </summary>
|
|||
|
/// <param name="name"></param>
|
|||
|
/// <param name="surname"></param>
|
|||
|
public Person(string name, string surname)
|
|||
|
{
|
|||
|
Name = name;
|
|||
|
Surname = surname;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|