How to variable, write the type of object and then use it? For example, there is a type VkNet.Enums.SafetyEnums.PhotoAlbumType.Wall it needs to be written. I just have a comboBox , it has 3 lines and, based on the selected line (by index), I need to return the desired type.
Type of such:
switch (comboBox1.SelectedIndex) { case 0: fff = VkNet.Enums.SafetyEnums.PhotoAlbumType.Wall; break; case 1: fff = VkNet.Enums.SafetyEnums.PhotoAlbumType.Profile; break; case 2: fff = VkNet.Enums.SafetyEnums.PhotoAlbumType.Saved; break; }