static void Main(string[] args) { Console.Write("Enter first string: "); string a = Console.ReadLine(); Console.WriteLine(); Console.Write("Enter second string: "); string b = Console.ReadLine(); Console.WriteLine(); concatenate c1 = new concatenate(del1); concatenate c2 = new concatenate(del2); concatenate obj = c1 + c2; Console.WriteLine(obj(a, b)); }
static void Main(string[] args) { Console.WriteLine("Implementing multicasting concept:"); Console.WriteLine("\n"); concatenate con1 = new concatenate(Program.fun1); con1 += new concatenate(Program.fun2); Console.WriteLine("Enter the two strings:"); string a, b; a = Console.ReadLine(); b = Console.ReadLine(); con1(a, b); Console.WriteLine("printing the property: {0}", property); }