Copy(); function in C#
It's used to make another event of String with a similar incentive as a predetermined String. It is a static system for String class. Its entry type is a string.
Example
using System;
namespace program
{
class Program
{
static void Main(string[] args)
{
string str1 = "Wellcome";
string str2 = string.Copy(str1);
Console.WriteLine(str1+"\n"+str2);
Console.ReadKey();
}
}
}
Output
Wellcome
Wellcome
It's used to make another event of String with a similar incentive as a predetermined String. It is a static system for String class. Its entry type is a string.
Example
using System;
namespace program
{
class Program
{
static void Main(string[] args)
{
string str1 = "Wellcome";
string str2 = string.Copy(str1);
Console.WriteLine(str1+"\n"+str2);
Console.ReadKey();
}
}
}
Output
Wellcome
Wellcome