Guest User

Untitled

a guest
Jan 17th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  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";
Add Comment
Please, Sign In to add comment