Skip to content

Instantly share code, notes, and snippets.

@LilinYume
Created June 11, 2013 14:05
Show Gist options
  • Save LilinYume/5757110 to your computer and use it in GitHub Desktop.
Save LilinYume/5757110 to your computer and use it in GitHub Desktop.
using System;
//To work : like a Class and that hidden by System.
delegate void GataMethod(); // Class declarationa
//a class Including some method, It was send throw the Gata.
class MehtodHolder //Sender
{
public void SomeMethod()
{
Console.WriteLine("this is Method");
}//-----
}//=====
class Gata //Reciver
{
static void Main()
{
MehtodHolder HadMethodClass = new MehtodHolder();
// ClassType variable.
GataMethod GataPassed;
//Method come across as a copy form other class.
GataPassed = HadMethodClass.SomeMethod;
//This is like... a variable, method, and a class.
GataPassed();
}//-----
}//=====
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment