Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть New C# 11 Keyword - required - and How To Use It Right

  • Zoran on C#
  • 2022-11-22
  • 3389
New C# 11 Keyword - required - and How To Use It Right
csharpdotnetprogrammingobject-oriented programmingfunctional programmingc#zoranhorvatzoran horvatc# programminglearn c#c# tutorialrequiredc# 11dotnet 7.net 7c# 11 what's new.net 7 what's newdotnet 7 what's newpropertiesinitializerconstructornondestructive mutationmutationfunctional classfunctional designimmutable designimmutable classimmutable
  • ok logo

Скачать New C# 11 Keyword - required - and How To Use It Right бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно New C# 11 Keyword - required - and How To Use It Right или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку New C# 11 Keyword - required - and How To Use It Right бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео New C# 11 Keyword - required - and How To Use It Right

Become a patron and get access to source code and exclusive live streams:   / new-c-11-keyword-81381466  

The 'required' keyword, introduced in C# 11, is completing the cycle started in C# 9, when init-only setters were introduced. By combining object initializers with required properties, we can redefine the process of instantiating classes.
A required member must be initialized at the time of construction. Failing to do so will cause a compile-time error, because compiler is performing due diligence on every instantiation of an object which declares required members.
Special attention is paid to constructors. Every constructor that sets all required members - fields or properties - must be adorned with the SetsRequiredMembers attribute. That is the signal to the constructor that a use of that constructor is safe, from perspective of the required members. If this attribute is not set, then the constructor would expect all required members to be set using the initializer right after the call to the constructor.
It is important to note that there is no "middle ground". A constructor is either considered to set all required members, or all required members must appear in the initializer, regardless of what the constructor actually does.

Chapters:
00:00 Intro
00:31 Initializing properties before C# 11
03:02 Using the required keyword in C# 11
04:09 Using the SetsRequiredMembers attribute
06:07 Using required properties in nondestructive mutation

Learn more from video courses:
Beginning Object-oriented Programming with C# ► https://codinghelmet.com/go/beginning...
Collections and Generics in C# ► https://codinghelmet.com/go/collectio...
Making Your C# Code More Object-oriented ► https://codinghelmet.com/go/making-yo...

Other courses at Pluralsight ► https://codinghelmet.com/go/pluralsight
Other courses at Udemy ► https://codinghelmet.com/go/udemy

Other videos on this channel you may be interested in watching:
Using GitHub Copilot to Write Complex Code | Step-by-step Tutorial ►    • Using GitHub Copilot to Write Complex Code...  
Coding with GitHub Copilot - Beginner to Master | VS Code Demo ►    • A Comprehensive Guide to GitHub Copilot: F...  
What is Covariance and Contravariance in C# ►    • What is Covariance and Contravariance in C...  
How to Initialize a Clean ASP.NET Core Project with Entity Framework Core and Identity ►    • How to Initialize a Clean ASP.NET Core Pro...  
The Null Conundrum: A Guide to Optional Objects in C# ►    • How to Avoid Null Reference Exceptions: Op...  

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]