use of copy string in C#
For Example: Write a program to demonstrate the use of copy string
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
string s11 = "Aryan";
string s22 = string.Copy(s11);
Console.WriteLine("Copy string is:
{0}", s22);
Console.ReadLine();
}
}
}
Output:
Comments
Post a Comment