Guest User

Untitled

a guest
Apr 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. "proceso x realizado n"
  2. "proceso y saltado n" //porque o se realiza x o y
  3. "proceso a fallo al sumar n"
  4. "proceso n [...] n"
  5.  
  6. public static string Format(IFormatProvider provider, string format, params object[] args)
  7. {
  8. if ((format == null) || (args == null))
  9. {
  10. throw new ArgumentNullException((format == null) ? "format" : "args");
  11. }
  12.  
  13. StringBuilder builder = new StringBuilder(format.Length + (args.Length * 8));
  14. builder.AppendFormat(provider, format, args);
  15. return builder.ToString();
  16. }
  17.  
  18. string x = "hello";
  19. string y = "there";
  20. string z = "chaps";
  21. string all = x + y + z;
  22.  
  23. string x = "hello";
  24. string y = "there";
  25. string z = "chaps";
  26. string all = string.Concat(x, y, z);
Add Comment
Please, Sign In to add comment