27 lines
709 B
C#
27 lines
709 B
C#
/*
|
|
* Author: Nikolay Dvurechensky
|
|
* Site: https://www.dvurechensky.pro/
|
|
* Gmail: dvurechenskysoft@gmail.com
|
|
* Last Updated: 12 мая 2025 02:47:11
|
|
* Version: 1.0.3
|
|
*/
|
|
|
|
using System;
|
|
using Extension;
|
|
using Students;
|
|
|
|
/*
|
|
* Extension методы (метод расширения) (расширяющие методы)
|
|
*/
|
|
class Program
|
|
{
|
|
static void Main()
|
|
{
|
|
DateTime currentDateTime = DateTime.Now;
|
|
currentDateTime.Print();
|
|
Console.WriteLine(currentDateTime.IsDayOfWeek(DayOfWeek.Monday));
|
|
Student student = new Student() { FirstName = "Джим", LastName = "Керри" };
|
|
Console.WriteLine(student.GetFullName());
|
|
Console.ReadKey();
|
|
}
|
|
} |