mergedServices.SPARQLQueryBuilder.expandTerms C# (CSharp) Method

expandTerms() private method

puts bracket around the (filterterms) and concatenates them with &&
private expandTerms ( List terms, string ooperator = "&&" ) : string
terms List list of filterterms
ooperator string separator operator default &&
return string
        private string expandTerms(List<string> terms, string ooperator = "&&")
        {
            string result = "";

            for (int x = 0; x < terms.Count; x++)
            {
                result += "(" + terms[x] + ")";
                result += (x + 1 == terms.Count) ? "" : " " + ooperator + " ";
                result += "\n";
            }
            return "(" + result + ")";
        }