Example #1
0
        public string ToMethodCall(string objectName, string statement)
        {
            if (string.IsNullOrWhiteSpace(statement)) { return string.Empty; }

            var signatureParams = new ParameterResolver(statement).Parameters;

            return string.Concat(
                objectName.TrimEnd(new[] { '.' }),
                ".",
                statement.ToMethodName(),
                "(",
                string.Join(", ", signatureParams.Select(d => d.Name)),
                ")");
        }