private string ToString(ArithmeticStatement statement) { if (statement == null) return null; var str = new System.Text.StringBuilder(); foreach(var operations in statement.Affectations) foreach(var operation in operations.Value) str.Append(operations.Key).Append(" = ").Append(operation).Append(", "); if (statement.Affectations.Count > 0) str.Length -= 2; return str.ToString(); }
private string ToString(ArithmeticStatement statement) { if (statement == null) { return(null); } var str = new System.Text.StringBuilder(); foreach (var operations in statement.Affectations) { foreach (var operation in operations.Value) { str.Append(operations.Key).Append(" = ").Append(operation).Append(", "); } } if (statement.Affectations.Count > 0) { str.Length -= 2; } return(str.ToString()); }