c# - Adding a Func to an ExpandObject as Dictionary -
so know how add properties expandoobject dictionary, i'm not sure how add func's:
for example:
var foo = (idictionary<string, object>)new expandoobject(); foo.add("bar", "somevalue"); is fine. i'm not sure how i'd go on add
foo.add("foofunc", (somestring) => { return somestring; }); as not object. appeciated, in advance
funcs objects may have explicit adding one:
foo.add("foofunc", new func<string, string>(somestring => { //... return somestring; });
Comments
Post a Comment