ClearScript doesn't provide any syntactic shortcuts for accessing default members.
This is particularly noticeable with indexers, which currently must be accessed by name. For example, host dictionary indexers are actually named "Item" and support the following syntax (JavaScript):
``` JavaScript
value = dict.Item(key);
value = dict.Item.get(key);
dict.Item.set(key, value);
```
Because `Item` is a default property, it might also make sense to support one or more of the following:
``` JavaScript
value = dict(key)
value = dict.get(key)
dict.set(key, value)
```
Default methods, though rarely used, might also benefit from special handling.
Comments: Default member support improved in [Version 5.4.2](https://clearscript.codeplex.com/SourceControl/changeset/bfd06449d9e70818985d855319b7bc3a955313aa). Tunneling of `get` and `set` indexer methods is canceled.
This is particularly noticeable with indexers, which currently must be accessed by name. For example, host dictionary indexers are actually named "Item" and support the following syntax (JavaScript):
``` JavaScript
value = dict.Item(key);
value = dict.Item.get(key);
dict.Item.set(key, value);
```
Because `Item` is a default property, it might also make sense to support one or more of the following:
``` JavaScript
value = dict(key)
value = dict.get(key)
dict.set(key, value)
```
Default methods, though rarely used, might also benefit from special handling.
Comments: Default member support improved in [Version 5.4.2](https://clearscript.codeplex.com/SourceControl/changeset/bfd06449d9e70818985d855319b7bc3a955313aa). Tunneling of `get` and `set` indexer methods is canceled.