Unnamed
public text v1 · immutableusing System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
public delegate void Words(string words);
public class MyWords
{
public void FirstWord(string word)
{
Console.WriteLine(word);
}
public void SecondWord(string word)
{
Console.WriteLine(word);
}
}
class Program
{
static void Main(string[] args)
{
MyWords mw = new MyWords();
Words w = mw.FirstWord;
w += mw.SecondWord;
w("Hi");
}
}
}