[英]How to calculcate a medical formula in C# avoiding switch statements - Rule Engine alternatives
我在 .NET 6.0 web 應用程序中使用 C#,我想根據具有 15 個變量的醫學公式計算分數。 是否有更結構化的方式來避免多個和折疊的 switch & if then 語句? 我嘗試使用Microsoft 的規則引擎,但每個規則的 output 是常量,而在我的場景中,output ...