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

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -