duheng
2024-11-27 2e3201e1be4247b47b2b8c2a60c56c0d6885b05a
WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-calcu/02-visual/HydroCalcuVisualResult.cs
@@ -39,5 +39,19 @@
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 获取计算值
        /// </summary>
        public virtual double? GetCalcuValue(string propName)
        {
            var propInfo = this.GetType().GetProperty(propName);
            if (propInfo != null)
            {
                var propValue = (double?)propInfo.GetValue(this);
                return propValue;
            }
            return default;
        }
    }
}