I have trouble with using new 8.0
switch
statment. In my case i don't need to return anything from switch nevertheless all examples i found uses return. I would like to have something like this below (psudo code). Keep in mind for some cases i need to put multilines. Is something like this possible?
operationType switch
{
OpType.Handle
{
//do something
//do something
}
OpType.Move => //do Something
_ => throw new ArgumentOutOfRangeException(nameof(operationType), operationType, null)
};