Under the Hood - Ternary Operator [ ?: ]

Someone posted the following question on Stack Overflow today: (since deleted) Is there a better way according to best practices to do this type of ternary operation without breaking it down into an if block? visitorInfo = string.IsNullOrEmpty(visitorInfo.latitude) ?  DetermineGeolocation(visitorInfo) : visitorInfo; Meaning, without breaking it into a complete if block, is there a way to avoid saying visitorInfo = visitorInfo on a false condition? Maybe something like: DoNothing() or some similar coding construct? I made the following comment, which may not have seemed entirely helpful to him, but it’s accurate. A ternary operation is equivalent to an if/ »