Advertisement
dimov

Untitled

Dec 30th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System;
  2.  
  3. class HelloWorldStrings
  4. {
  5.     static void Main()
  6.     {
  7.         string firstPart = "Hello ";
  8.         string secondPart = "World";
  9.         object wholeObj = firstPart + secondPart;
  10.         string wholeString = (string)wholeObj;
  11.         Console.WriteLine("the string is " + firstPart + secondPart);
  12.         Console.WriteLine("the string is " + wholeObj);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement