37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Test_App
|
|
{
|
|
public class TestClass2
|
|
{
|
|
public int Id { get; private set; }
|
|
//имя
|
|
public string FirstName { get; private set; }
|
|
//фамилия
|
|
public string LastName { get; private set; }
|
|
//возраст
|
|
public int Age { get; private set; }
|
|
//есть ли машина
|
|
public bool HasCar { get; private set; }
|
|
//подразделение
|
|
public string Department { get; private set; }
|
|
//должность
|
|
public string Post { get; private set; }
|
|
|
|
public TestClass2(int id, string firstName, string lastName, int age, bool hasCar, string department, string post)
|
|
{
|
|
Id = id;
|
|
FirstName = firstName;
|
|
LastName = lastName;
|
|
Age = age;
|
|
HasCar = hasCar;
|
|
Department = department;
|
|
Post = post;
|
|
}
|
|
}
|
|
}
|