TradeMe.Api.Client.Client.AddAndHelper C# (CSharp) Method

AddAndHelper() static private method

A helper method for determinging if the & symbol needs to be added to the query string based on the boolean "extra".
static private AddAndHelper ( bool extra, string toAdd ) : string
extra bool True if the & symbol should be added.
toAdd string The string that needs to be added to the query string.
return string
        internal static string AddAndHelper(bool extra, string toAdd)
        {
            var toReturn = string.Empty;
            if (!extra)
            {
                toReturn += toAdd;
            }
            else
            {
                toReturn += "&" + toAdd;
            }

            return toReturn;
        }
Client