Not really. You can, of course, create an array and use its indexed getter:
day = new[] { 31, 28, 30 }[month];
Alternatively, you could - I would not - import the Microsoft.VisualBasic namespace and do:
day = Interaction.Choose(month, 31, 28, 30);
I donβt know how simplified your example is, but in case you are really looking for a way to find the number of days in a particular month, try DateTime.DaysInMonth() :
day = DateTime.DaysInMonth(2008, 2); // day == 29
source share