Replace switch statement
问题 I have to calculate the price based on multiple input variables public class Model { public int Account { get; set; } public long Related{ get; set; } public int TransactionType { get; set; } public string detail{ get; set; } public int PlanId { get; set; } } First switch starts with TransactionType . Based on TransactionType I need to use Account,PlanId ,Related fields for more information from database to get more information and some configurable information. There are more conditions