Skip to content

Instantly share code, notes, and snippets.

@i-sync
i-sync / String Format With Name
Created September 30, 2016 09:52
String Format With Name
public static string FormatWith(this string format, object source)
{
return FormatWith(format, null, source);
}
public static string FormatWith(this string format, IFormatProvider provider, object source)
{
if (format == null)
throw new ArgumentNullException("format");