Created
November 3, 2017 19:44
-
-
Save NineMvp/c8928c137e86f4b3799ea7c1f205c696 to your computer and use it in GitHub Desktop.
nullable primitive data type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int? total = 100; | |
total ?? 0; //เข้าถึงข้อมูลแบบกำหนดค่า default value หากเป็น null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment