Null Conditional Operators | C#

Veröffentlicht am: 14 Januar 2022
auf dem Kanal: 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.


Auf dieser Seite können Sie das Online-Video Null Conditional Operators | C# mit der Dauer online in guter Qualität ansehen, das der Benutzer SharpDev 14 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 240 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!