Page 39 - CSharp/C#
P. 39
Getting a default value from a nullable 675
Check if a generic type parameter is a nullable type 675
Default value of nullable types is null 675
Effective usage of underlying Nullable argument 676
Chapter 107: Null-Coalescing Operator 678
Syntax 678
Parameters 678
Remarks 678
Examples 678
Basic usage 678
Null fall-through and chaining 679
Null coalescing operator with method calls 680
Use existing or create new 680
Lazy properties initialization with null coalescing operator 681
Thread safety 681
C# 6 Syntactic Sugar using expression bodies 681
Example in the MVVM pattern 681
Chapter 108: Null-conditional Operators 682
Syntax 682
Remarks 682
Examples 682
Null-Conditional Operator 682
Chaining the Operator 683
Combining with the Null-Coalescing Operator 683
The Null-Conditional Index 683
Avoiding NullReferenceExceptions 683
Null-conditional Operator can be used with Extension Method 684
Chapter 109: NullReferenceException 685
Examples 685
NullReferenceException explained 685
Chapter 110: O(n) Algorithm for circular rotation of an array 687

