(типа 
                  
                  
                  case Type.One:
                  
                  
                  case Type.Two:
                  
                  
                         return string.empty)
                  
                  
                  ) в таком switch  и если да, то как?
                  
                  
                  
                  
                  
                  var p = new Person
                  
                  
                  {
                  
                  
                        Type = response.Type.HasValue ?
                  
                  
                        response.Type.Value switch
                  
                  
                        {
                  
                  
                             Type.One => "1",
                  
                  
                             Type.Two => "1" ,
                  
                  
                             _ => "A"
                  
                  
                        },
                  
                  
                        default
                  
                  
                  ];
                  
                  
                
Не уверен, но может через or ?
or?
решил проблемы через гарды
Обсуждают сегодня