Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class StringAndObjects
- {
- static void Main()
- {
- string hello = "Hello";
- string world = "World";
- object obj = hello + " " + world;
- Console.WriteLine(obj);
- string str = (string)obj;
- Console.WriteLine(str);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment