I created a Record Generator to allow you to use Records in your VB.NET prpjects.
These are three possible variations of the record syntax:
To use the Record Generator:Code:Public Record NameValue(Name ="", Value = 0.0) Public ReadOnly Structure ROStruct(X$, Y%, Z@) Friend ReadOnly Class ROClass(A As Integer, B As Integer)
- Add the NuGet package to your project.
PM> Install-Package Visual-Basic-Record-Generator- Add one or more text files to your project, and change there extension to .rec.
- Right-click the .rec file in the Solution Explorer and click Properties, then from the 'Build Action' dropdown list choose VB analyzer additional file and save the changes.
- Write the one or more record syntax in each .rec file and save the changes. The generator will generate the record classes/structures immediately for you, and you can use them in your code as a part of your project.
For more info on record syntax, see the `Read Me` on the source code repo on github:





Reply With Quote