Skip to content

Commit a765bf7

Browse files
committed
C#: Add some model generator examples for higher order methods.
1 parent 06ed917 commit a765bf7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

csharp/ql/test/utils/modelgenerator/dataflow/Summaries.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,15 @@ public string M1(string s, Func<string, string> map)
506506
return s;
507507
}
508508

509-
public object M2(Func<object, object> map, object o)
509+
public object Map(Func<object, object> map, object o)
510510
{
511511
return map(o);
512512
}
513+
514+
public void Apply(Action<object> action, object o)
515+
{
516+
action(o);
517+
}
513518
}
514519

515520
public abstract class BaseClass

0 commit comments

Comments
 (0)