Last active
September 28, 2015 18:18
-
-
Save pagebrooks/1477840 to your computer and use it in GitHub Desktop.
FormatWith Extension Method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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