private static byte GetStackSize(LahapJewelMixRequest.StackSize stackSize) { return(stackSize switch { LahapJewelMixRequest.StackSize.Ten => 10, LahapJewelMixRequest.StackSize.Twenty => 20, LahapJewelMixRequest.StackSize.Thirty => 30, _ => throw new InvalidEnumArgumentException(nameof(stackSize), (int)stackSize, typeof(LahapJewelMixRequest.StackSize)) });
private static byte GetStackSize(LahapJewelMixRequest.StackSize stackSize) { switch (stackSize) { case LahapJewelMixRequest.StackSize.Ten: return(10); case LahapJewelMixRequest.StackSize.Twenty: return(20); case LahapJewelMixRequest.StackSize.Thirty: return(30); default: throw new InvalidEnumArgumentException(nameof(stackSize), (int)stackSize, typeof(LahapJewelMixRequest.StackSize)); } }