E
Eran.Yasso
Hi,
I saw that there's the delegate feature that handles as pointer to
function but in safe mode.
Can I send function name to other function to call it?
for example:
printmeA()
{
Console.WriteLine( "printmeA()");
}
printmeB()
{
Console.WriteLine( "printmeB()");
}
printmeC()
{
Console.WriteLine( "printmeC()");
}
function B(object Calledfun)
{
Calledfun();
}
function A()
{
B(printmeA);
B(printmeB);
B(printmeB);
}
thanks.
I saw that there's the delegate feature that handles as pointer to
function but in safe mode.
Can I send function name to other function to call it?
for example:
printmeA()
{
Console.WriteLine( "printmeA()");
}
printmeB()
{
Console.WriteLine( "printmeB()");
}
printmeC()
{
Console.WriteLine( "printmeC()");
}
function B(object Calledfun)
{
Calledfun();
}
function A()
{
B(printmeA);
B(printmeB);
B(printmeB);
}
thanks.