I have this foreach section and i am trying to add a line after my \"result = string.Format\" but i get the following error \"Only assignment, call, increment, decrement, aw
result.StartsWith("/") && result.EndsWith("/") ? result.Replace("/", string.Empty) : result;
This line does nothing with the result of the ternary operator. I assume you'd want to assign it to result