void ParsePositionString(String input, out Evaluation.Expression expression, out BindToTargetPostion postype) { expression = null; postype = BindToTargetPostion.None; if (input == null) { return; } Int32 sep_index = input.LastIndexOf(','); if (sep_index == -1) { expression = StateSystem.GetSubSystem <Evaluation.EvaluationSystem>().CreateExpression(input); return; } String str_exp = input.Substring(0, sep_index).Trim(); String str_postype = input.Substring(sep_index + 1).Trim(); BindToTargetPostion bttp; if (StateSystem.GetSubSystem <StringConverter>().TryConvert(str_postype, out bttp) == true) { expression = StateSystem.GetSubSystem <Evaluation.EvaluationSystem>().CreateExpression(str_exp); postype = bttp; } else { expression = StateSystem.GetSubSystem <Evaluation.EvaluationSystem>().CreateExpression(input); } }
void ParsePositionString(String input, out Evaluation.Expression expression, out BindToTargetPostion postype) { expression = null; postype = BindToTargetPostion.None; if (input == null) return; Int32 sep_index = input.LastIndexOf(','); if (sep_index == -1) { expression = StateSystem.GetSubSystem<Evaluation.EvaluationSystem>().CreateExpression(input); return; } String str_exp = input.Substring(0, sep_index).Trim(); String str_postype = input.Substring(sep_index + 1).Trim(); BindToTargetPostion bttp; if (StateSystem.GetSubSystem<StringConverter>().TryConvert(str_postype, out bttp) == true) { expression = StateSystem.GetSubSystem<Evaluation.EvaluationSystem>().CreateExpression(str_exp); postype = bttp; } else { expression = StateSystem.GetSubSystem<Evaluation.EvaluationSystem>().CreateExpression(input); } }