Code:
using System;
class Program
{
static void Main(string[] args)
{
string s = "".PadLeft(5, 'X').Replace("X", "Executecodes");;
Console.Write("The String After the Replacement :{0}",s);
Console.Read();
}
}
Output:
The String After the Replacement :ExecutecodesExecutecodesExecutecodesExecutecodesExecutecodes
More C# Programs: