Pass a function as an argument
- From: Magnus.Moraberg@xxxxxxxxx
- Date: Mon, 7 Apr 2008 05:43:51 -0700 (PDT)
Hi,
I have a function within which I would like to call another function.
Id like to pass the second function into the first as an argument. As
follows:
Function1(Function2a);
Function1(Function2b);
void Function1(? Function2)
{
Function2();
}
Is this possible?
Thanks,
Barry.
.
- Follow-Ups:
- Re: Pass a function as an argument
- From: Jon Skeet [C# MVP]
- Re: Pass a function as an argument
- From: Marc Gravell
- Re: Pass a function as an argument
- From: Hans Kesting
- Re: Pass a function as an argument
- Prev by Date: Re: Handling SPAM posts
- Next by Date: Re: Pass a function as an argument
- Previous by thread: Databindings and invalid values being displayed
- Next by thread: Re: Pass a function as an argument
- Index(es):