Looks like VB is growing up. It finally has curly braces thanks to LINQ:
Dim People = {New Person {Age := 42, Name := "Erik"}, _ New Person {Age := 12, Name := "Wouter" }}
It was only a matter of time until they admitted the power of the curly brace. MUAHAHAHA! :)
To be more VB-like, I suggest:
Dim People = Begin Anonymous Type _Begin New Type As Person(Age := 42, Name := "Erik") End New Type, _Begin New Type As Person(Age := 12, Name := "Wouter") End New Type, _End Anonymous Type As Anonymous Type
Disclaimer The opinions expressed herein are solely my own personal opinions, founded or unfounded, rational or not, and you can quote me on that.
Thanks to the good folks at dasBlog!
Copyright © 2019 J. Ambrose Little