All pastes #154138 Raw Edit

Shin-Ra

public text v1 · immutable
#154138 ·published 2006-08-30 06:10 UTC
rendered paste body
using System;

namespace MyApp
{
	public delegate int test(int x, int y);
	
	public static class SimpleAddition
	{
		public static int Addition(int x, int y)
		{
			return x + y;
		}
	}
	
	public class Program
	{
		public static void Main(string[] args)
		{
			test t = new test( SimpleAddition.Addition );
			Console.Write( "Test = {0}", t( 5, 6 ) );
		}
	}
}