-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support delegation #102
Comments
Hello team! It would be really great if we have support for delegation.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a custom method to receive the delegation type. The method code is as follows:
public static dynamic GREPARRAY(dynamic data, Func<dynamic, bool> func)
{
if (func==null)
{
func = item => item > 1;
}
List list = new List();
if (data is Array)
{
foreach (dynamic item in data)
{
if (func(item))
{
list.Add(item);
}
}
}
return list;
}
I try to use statements:“GREPARRAY(null,item=>item>1)”,An error occurred。
How do I call this method,thanks
The text was updated successfully, but these errors were encountered: