Skip to content

Instantly share code, notes, and snippets.

@pagebrooks
Last active September 28, 2015 18:18
Show Gist options
  • Save pagebrooks/1477840 to your computer and use it in GitHub Desktop.
Save pagebrooks/1477840 to your computer and use it in GitHub Desktop.
FormatWith Extension Method
[DebuggerStepThrough]
public static string FormatWith(this string target, params object[] args)
{
if (string.IsNullOrEmpty(target))
{
return string.Empty;
}
return string.Format(CultureInfo.CurrentCulture, target, args);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment