Created
June 11, 2013 14:05
-
-
Save LilinYume/5757110 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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