Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Clone in C#

You can make a string with a clone copy of another string like below:

  1. using System;
  2. using System.IO;
  3. using System.Text;
  4.  
  5. namespace forgetCode
  6. {
  7. class program1
  8. {
  9. static void Main(string[] args)
  10. {
  11. string firstString = "Forget code";
  12. string baby = firstString.Clone().ToString();
  13. Console.WriteLine(baby);
  14. }
  15. }
  16. }
  17.  
  18. Output:
  19. Forget code
  20.  
  21. ..