Today I kicked of the self-paced kit '.NET Framework 2.0 Application Development Foundation'.
Did lesson of the first chapter and learned about Value Types.
Dugh, like I never heard of those before.
Nevertheless, I learned about the wonderfull Nullable keyword. This fantastic addition to 2.0 allows you to declare a variable with the capability or storing Nothing values. Extremely handy for Booleans.
A slightly unusual syntax, but still doable:
- dim b as Nullable(Of Boolean) = Nothing
When declaring your var like this, members such as HasValue and Value become available.
Super start. First lesson and already learned a usefull new thing. Can't wait for the next lesson about Common Reference Type.
Be seeing ya...

No comments:
Post a Comment