title: c#.NET and sprintf syntax
body: <p>How would this code be translated into C#, specifically how would <code>sprintf</code> be implemented in C#?</p>
  
  <pre><code>string output = "The user %s logged in";
  string loggedIn = "is";
  string loggedOut = "isn't";
  
  if (TheUser.CheckStatus())
  {
      output = sprintf(output, loggedIn);
  }
  else
  {
      output = sprintf(output, loggedOut);
  }
  
  return output;
  </code></pre>
  
  <p>I'm expecting to see <code>"The user isn't logged in"</code> if <code>TheUser.CheckStatus()</code> is <code>false</code>.</p>