![]() Consider the following: Dim fooInstance As Foo = Nothing The ? operator is particularly powerful when you have a chain of properties. The old verbose syntax: If myObject IsNot Nothing AndAlso myObject.Value >= 10 ThenĬan be now replaced by the concise: If myObject?.Value >= 10 Then operator has been introduced in the language. This was done to keep VB in line with the version numbering of Visual Studio itself. The version number of Visual Basic went straight from 12 to 14, skipping 13. ![]() Many features were added to remove common irritations and to make common coding patterns cleaner. This version was rewritten from scratch in about 1.3 million lines of VB. Visual Basic 14 is the version of Visual Basic that was shipped as part of Visual Studio 2015.
0 Comments
Leave a Reply. |