daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int num = some numerical value;
  2. status.Text = "Successfully Deleted"+ " " + num + " " + "Files";
  3.    
  4. int num = 5;
  5. status.Text = String.Format("Successfully Deleted {0} Files", num);
  6.    
  7. int num = 5;
  8. StringBuilder sb = new StringBuilder();
  9. sb.AppendFormat("Successfully Deleted {0} Files", num);
  10. status.Text = sb.ToString();
  11.    
  12. status.Text = "Successfully Deleted " + num + " Files";
  13.    
  14. public static string SurroundWithSpaces(this object o)
  15. {
  16.     return " " + o + " ";
  17. }
  18. status.Text = "Successfully Deleted" + num.SurroundWithSpaces() + "Files";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top