NedyalkoKikov

stringAndObjects

Nov 5th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. using System;
  2.  
  3. class StringAndObjects
  4. {
  5. static void Main()
  6. {
  7. string hello = "Hello";
  8. string world = "World";
  9. object obj = hello + " " + world;
  10. Console.WriteLine(obj);
  11. string str = (string)obj;
  12. Console.WriteLine(str);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment