c# - 如何将字符串属性中的值分配给属性对象
问题描述
我有 2 个属性
public MeasureDiameterMethodEnt PrimaryCalcMethod { get; set; }
public MeasureDiameterMethodEnt SecondaryCalcMethod { get; set; }
以及来自数据库的具有两个值(PrimaryCalcMethod、SecondaryCalcMethod)值的属性。
public string CalcMethodName { get; set; }
如何将字符串属性 CalcMethodName 中的值“PrimaryCalcMethod”分配给属性对象 PrimaryCalcMethod?如何将字符串属性 CalcMethodName 中的值“SecondaryCalcMethod”分配给属性对象 SecondaryCalcMethod?
解决方案
推荐阅读
- amazon-web-services - 在一天中的特定时间横向扩展 RDS Aurora 只读副本
- sql - 如何在任何列中的值匹配的情况下执行 SQL 内连接?
- flutter - 如何启用控制流集合实验
- javascript - 如何对用户以 html 表单输入的数据应用 stringify?
- mysql - SQL if not null 更新
- android - 在订阅 fcm 主题时,firebase 管理节点 sdk 和 firebase 客户端 sdk 之间是否存在冲突?
- python - 如何将 if 检查包含到 for 循环中
- reactjs - 反应上下文不保存更新
- curl - 将提琴手原始标头转换为 curl -X post 命令
- kubernetes - 使用静态名称重置 pod 的 restartCount