private void SetValueProperty(string callString) { foreach (string op in transformOperators) { if (callString.Contains(op)) { string[] sCall = callString.Split(transformOperators, StringSplitOptions.RemoveEmptyEntries); string argument = GetProperty(sCall[1]); float pArgument = StringCalculator.Solve(argument); string[] itemArray = GetPropertyArray(sCall[0]);// double newValue = double.NaN; string pOp = op; if (pOp == "==") { newValue = pArgument; } else { pOp = op.Replace("=", ""); newValue = StringCalculator.Solve(itemArray[2] + pOp + pArgument); } SetProperty(itemArray[0], itemArray[1], newValue); break; } } }