Загрузка...

Null Conditional Operator in C# and How to Use It

The null conditional operator in C# checks if a variable, argument, etc. is null before accessing its elements or members (properties and methods).

Null values can result in a NullRefrenceException, so it's always a good idea to ensure your variables are only null intentionally.

The null assignment operator is not to be confused with the null assignment operator or the null coalescing operator.

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

Subscribe to the channel ✔️
https://www.youtube.com/channel/UCQzgvO9ALGmBZr75m8OiAiA

Become a member to access exclusive perks.
https://www.youtube.com/channel/UCQzgvO9ALGmBZr75m8OiAiA/join

CUSTOM SAKURA THEME for Visual Studio, exclusive content, and more on Patreon.
https://www.patreon.com/heightabovesealevel

Click the 🔔 to turn on notifications so you don't miss anything.

Come hang out on DISCORD!
Discord: https://discord.gg/kbBbZrArpK

Other awesome videos worth checking out:

Operators in C# and How to Use Them
https://youtu.be/PGrNsVII6js

C# for Beginners
https://www.youtube.com/playlist?list=PLKCFltnebRSVQHQ9tf5PSmk4X0KNqO6FU

A tip is always appreciated :)
https://streamelements.com/avatarvick/tip

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

Here's my other social media - amazing stuff over there too!

🎮 TWITCH ➼ https://www.twitch.tv/avatarvick
📷 INSTAGRAM ➼ https://www.instagram.com/heightabovesealevel
😂 TWITTER ➼ https://www.twitter.com/Vicktor_Oti (VICKTA)

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

🎵 Music provided by:

StreamBeats by Harris Heller
https://www.streambeats.com/

☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁☁

#csharp #dotnet #visualstudio

Thank you for watching.
Subscribe, and I'll see you in the next video.

Видео Null Conditional Operator in C# and How to Use It канала Height Above Sea Level
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять