Null Conditional Operators | C#

Publicado el: 14 enero 2022
en el canal de: SharpDev
240
5

You can follow the playlist here:    • C# Using Directives  

Introduction:
Available as from C# 6.
2 variants that provides member or element access iff operand is not null, otherwise null is returned.
?. : applies a member access
?[] : applies an element access

Null conditional operators are short circuiting.
If one operation in a chain of conditional member or element access operations returns null, the rest of the chain doesn't execute. 
E.g. A?.B?[C]
B is not evaluated if A is null.
C is not evaluated if either A or B is null.


En esta página del sitio puede ver el video en línea Null Conditional Operators | C# de Duración online en buena calidad , que subió el usuario SharpDev 14 enero 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 240 veces y le gustó 5 a los espectadores. Disfruta viendo!