All pastes #167858 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-09-12 13:03 UTC
rendered paste body
using 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");
        }
    }
}