Want more features on Pastebin? Sign Up, it's FREE!
Guest

chakrit

By: a guest on Nov 8th, 2008  |  syntax: C#  |  size: 0.54 KB  |  views: 506  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public static class StringExtensions
  2. {
  3.     public static string F(this string s, object arg0)
  4.     {
  5.         return string.Format(s, arg0);
  6.     }
  7.     public static string F(this string s, object arg0, object arg1)
  8.     {
  9.         return string.Format(s, arg0, arg1);
  10.     }
  11.     public static string F(this string s, object arg0, object arg1, object arg2)
  12.     {
  13.         return string.Format(s, arg0, arg1, arg2);
  14.     }
  15.     public static string F(this string s, params object[] args)
  16.     {
  17.         return string.Format(s, args);
  18.     }
  19. }
clone this paste RAW Paste Data