Allowing Get/Set for parameters

Jan 24, 2012 at 5:33 PM

Ive been creating functions like this:

 ((JsGlobal)script.Global)["attachEvent"] = new JsFunctionWrapper((i) =>
            {
                return JsNull.Instance;
            }, ((JsGlobal)script.Global).FunctionClass.PrototypeProperty);

And was hoping there was a way I can implement a get/set pair of delegates for a single value.

e.g

((JsGlobal)script.Global)["someProperty"] = new JsPropertyWrapper((g)=>
{
return someProperty;
},

(s, v)=>
{
someProperty = v
});

Thanks,
James