Saturday, 29 June 2013

Simple Delegete Example in C#

using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;

namespace
ConsoleApplication1
{
public delegate void delegate_sajil();
class Program
{
public static void sajil()
{
Console.WriteLine("I Called One Delegate!");
Console.ReadLine();
}
static void Main(string[] args)
{
delegate_sajil obj = new delegate_sajil(sajil);
obj();
}
}
}

No comments:

Post a Comment