Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class HelloWorldStrings
- {
- static void Main()
- {
- string firstPart = "Hello ";
- string secondPart = "World";
- object wholeObj = firstPart + secondPart;
- string wholeString = (string)wholeObj;
- Console.WriteLine("the string is " + firstPart + secondPart);
- Console.WriteLine("the string is " + wholeObj);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement