Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: dictionary returns undefined

$
0
0
Hi furesoft,

For standard .NET dictionaries, the following should work:
var b = _GET.Item.get('blub'); // _GET.Item('blub') also works but is not preferred
_GET.Item.set('blub', foo);
Another possibility is to use the provided PropertyBag class instead of a standard dictionary. That'll enable simplified JavaScript-like syntax for looking up and storing values, but other members (e.g., methods such as TryGetValue) will not be accessible from script code.

Good luck!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles



Latest Images