Visual Studio Code – Constant/readonly array of objects indexed by enum
In Delphi, one can write the following code: type TMyEnum = (meFirstValue, meSecondValue); TInfo = record Name: string; Description: string; end; const MyEnumDetails: array [TMyEnum] of TInfo = ( (Name: 'First Value'; Description: 'This is the first value'), (Name: 'Second…