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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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