我需要将x值与占位符进行比较
请帮助我完成您的输入
x是1500或2100之类的数字。
函数将是一个存储的评估,如x> 1400和x< 1600
当我使用关系时,我遇到错误
var diff = (lastScannedDate - DateTime.UtcNow).Days;
var deviceStatus = JsonConvert.DeserializeObject<Dictionary<string, string>>(_paasConfigurationManager.GetConfiguration("DeviceStatus").ToString());
foreach (var key in deviceStatus.Keys)
{
foreach (var value in deviceStatus.Values)
{
function = relation[0].Replace("and","&&").Replace("x",x);
DataTable f_dt = new DataTable();
var f_var = f_dt.Compute(function,"");
if (bool.Parse(f_var.ToString()) { do stuff }
}
}