Популярное

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

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

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

Топ запросов

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

C# Null Checks and Argument Validation - The Wise Approach

Автор: James Montemagno

Загружено: 2022-03-31

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

Описание:

Stop writing complex logic to validate your method arguments and use Guard, part of the .NET Community Toolkit. Guard is faster, less verbose, more expressive, and less error prone than manually writing checks and throwing exceptions. Today, I break down everything you need to know and how to get started.

Links:
Source code sample - https://github.com/jamesmontemagno/mv...
Community Toolkit GitHub - https://github.com/communitytoolkit/d...
Documentation - https://docs.microsoft.com/windows/co...
Me and Sergio talking toolkit -    • Introducing the .NET Community Toolkit - M...  

Join this channel to get access to perks:
   / @jamesmontemagno  

👕 Buy some swag! - https://jamesmontemagno.myspreadshop....
☕️ Buy me a coffee - https://www.buymeacoffee.com/jamesmon...

Follow:
👨‍💻 GitHub: https://github.com/jamesmontemagno
🦜 Twitter:   / jamesmontemagno  
📄 Website: https://www.montemagno.com
📰 Newsletter: https://newsletter.montemagno.com/

Chapters:
00:00 - Intro
00:32 - .NET Community Toolkit Overview
01:20 - Why validate arguments with Guard
02:40 - Setting up diagnostics library
05:23 - Guard overview with demo
11:55 - Wrap-up and more community toolkit

Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.

What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: https://cleclothingco.myshopify.com/

What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre:   / bcez1onhiqx  

My Setup:
💡 Nanoleaf Elements Lights - https://amzn.to/3umwJVW
🎙 Blue Spark Microphone - https://amzn.to/3qgtYkq
🎙 Blue Pop Filter - https://amzn.to/3jEWM3r
🤳 Rode Microphone Arm - https://amzn.to/2Z68AlE
🎧 Sony MDR7306 Headphones - https://amzn.to/372jxta
📲 Stream Deck - https://amzn.to/373Uk1n
📹 Elgato Cam Link - https://amzn.to/3a9eGbh
📷 GoPro Hero - https://amzn.to/374lm90
🖱 MX Master 2S Mouse - https://amzn.to/3d7J2gj
⌨️ Tecware Phantom Keyboard - https://amzn.to/3aUP4y9

#csharp #dotnet #validation #guard

C# Null Checks and Argument Validation - The Wise Approach

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

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

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

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

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

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

Генераторы исходного кода MVVM: больше никогда не пишите шаблонный код MVVM!

Генераторы исходного кода MVVM: больше никогда не пишите шаблонный код MVVM!

The Right Way to Check for Null in C#

The Right Way to Check for Null in C#

A Better Pub/Sub Messenger for .NET Applications with WeakReferenceMessenger

A Better Pub/Sub Messenger for .NET Applications with WeakReferenceMessenger

What is the MVVM pattern, What benefits does MVVM have?

What is the MVVM pattern, What benefits does MVVM have?

Correcting Common Async/Await Mistakes in .NET 8 - Brandon Minnick - Copenhagen DevFest 2023

Correcting Common Async/Await Mistakes in .NET 8 - Brandon Minnick - Copenhagen DevFest 2023

Что такое

Что такое "Reverse Engineering". Показываю как ломают софт.

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

What is Span in C# and why you should be using it

What is Span in C# and why you should be using it

Полное руководство по тестированию в .NET

Полное руководство по тестированию в .NET

Are events in C# even relevant anymore?

Are events in C# even relevant anymore?

Откуда в трубке телефона берётся гудок?

Откуда в трубке телефона берётся гудок?

Why all your classes should be sealed by default in C#

Why all your classes should be sealed by default in C#

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

Как крутят нейронки на периферийных устройствах / База по Edge Computing от инженера из Qualcomm

Как крутят нейронки на периферийных устройствах / База по Edge Computing от инженера из Qualcomm

This Is How Domain-Driven Design Makes Object-Oriented Design More Powerful

This Is How Domain-Driven Design Makes Object-Oriented Design More Powerful

Don't throw exceptions in C#. Do this instead

Don't throw exceptions in C#. Do this instead

Writing C# without allocating ANY memory

Writing C# without allocating ANY memory

Windows 11 — безнадёжное дело. Поистине, её пора на свалку. Не обновляйтесь с 10-й версии.

Windows 11 — безнадёжное дело. Поистине, её пора на свалку. Не обновляйтесь с 10-й версии.

Законодательное ограничение C++

Законодательное ограничение C++

Внедрение зависимостей для новичков в C# и .NET

Внедрение зависимостей для новичков в C# и .NET

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



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



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