Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Validating Records in C#: Everything You Ever Wanted To Know but Had No One To Ask

Автор: Zoran on C#

Загружено: 2024-03-06

Просмотров: 12865

Описание:

Become a sponsor to access source code ►   / zoranhorvat  
Join Discord server with topics on C# ► https://codinghelmet.com/go/discord
Enroll course Beginning Object-Oriented Programming with C# ► https://codinghelmet.com/go/beginning...
Subscribe ►    / @zoran-horvat  

This video draws the line under the diverse needs and requests we encounter when enforcing the validity of C# records. You will learn a set of approaches, from no validation at all in proper values, over property assignment validation, all the way to constructor validation of the sort we apply to regular classes.
There will be talking about record structs, which require double attention thanks to their mandatory default constructor as well as the default keyword that affects their creation.
There will be a touch of alchemy in between. We will demonstrate compile-time validation, which requires no code to execute at run time. Yet, every record instance will be created valid, with a 100% guarantee.
You decide which route to take from here. Still, be advised that not all routes are either safe or comfortable. Learn your tools well, and your code will flourish.

Watch related videos:
The Ultimate Guide to C# Records ►    • The Ultimate Guide to C# Records  
Possibility of Discriminated Unions in C# ►    • Possibility of Discriminated Unions in C#:...  

00:00 No Validation Case
04:29 Property Assignment Validation
07:41 Compile-time Validation
09:14 Record struct Validation
11:12 Constructor Validation
13:48 Summary

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
👨 About Me 👨
Hi, I’m Zoran, I have more than 20 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications.❤️
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⚡️RIGHT NOTICE:
The Copyright Laws of the United States recognize a “fair use” of copyrighted content. Section 107 of the U.S. Copyright Act states: “Notwithstanding the provisions of sections 106 and 106A, the fair use of a copyrighted work, including such use by reproduction in copies or phono records or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright." This video and our youtube channel, in general, may contain certain copyrighted works that were not specifically authorized to be used by the copyright holder(s), but which we believe in good faith are protected by federal law and the Fair use doctrine for one or more of the reasons noted above.

#csharp #dotnet #objectorientedprogramming

Validating Records in C#: Everything You Ever Wanted To Know but Had No One To Ask

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

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

Скачать аудио mp3

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

Learn C#: How Do Virtual Methods Work?

Learn C#: How Do Virtual Methods Work?

Wish To Remove Primitive Obsession? Try This Effective Technique!

Wish To Remove Primitive Obsession? Try This Effective Technique!

Favor Method Chaining Over Nested Calls | Clean Code

Favor Method Chaining Over Nested Calls | Clean Code

This New Feature Gives Superpower to C# Record Types

This New Feature Gives Superpower to C# Record Types

Why You Should Be Using Properties Instead of Public Fields in C#

Why You Should Be Using Properties Instead of Public Fields in C#

ТИПЫ ЗАПИСЕЙ | Изучение C# и DOTNET | Рахул Нат

ТИПЫ ЗАПИСЕЙ | Изучение C# и DOTNET | Рахул Нат

Remove Messy Constructor Calls | Clean Code

Remove Messy Constructor Calls | Clean Code

C# 9 Records

C# 9 Records

The Ultimate Guide to C# Records

The Ultimate Guide to C# Records

You May Have Never Learned This Lesson Right

You May Have Never Learned This Lesson Right

When Should You Use record, class, or struct - And Why That Matters?

When Should You Use record, class, or struct - And Why That Matters?

17 Pieces of C# Syntax That Make Your Code Short

17 Pieces of C# Syntax That Make Your Code Short

What are record types in C# and how they ACTUALLY work

What are record types in C# and how they ACTUALLY work

В 2026 году наличку окончательно запретят!

В 2026 году наличку окончательно запретят!

Record Types Validation is Simpler Than You May Think

Record Types Validation is Simpler Than You May Think

Master The L in SOLID

Master The L in SOLID

Как и почему менялся Путин?

Как и почему менялся Путин?

The Parts of Dapper You'll Have to Implement Yourself

The Parts of Dapper You'll Have to Implement Yourself

Let C# Tuples Become Your Best Friends

Let C# Tuples Become Your Best Friends

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



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