I want to use string interpolation for the below:
payloadArgs = string.Format("{0}TrackingID: \"{1}\"", payload.ToString().Replace("\n", "; "), trackingId);
I have tried
payloadArgs = $"{trackingId} TrackingId, \"{payload.ToString().Replace("\n", "; "), trackingId};
but I am obviously getting it wrong as I am getting a compile error "Cannot implicitly convert a string to int" over the "trackingId" and a warning about "newline in constant"
What's the correct way to do this?