Hi Evgeny,
Really, at present it's not possibly to do this effectively.
You can simulate the API of a hastable to some extent by using a custom collection type of a role and deriving your own collection from LinkedElementCollection. This collection could add indexed accessors. However, making those accessors anything other than brute force searches is pretty painful as you can't change the fundamental storage of the links at present.
One way to do it if you really needed read-time perf is to use Store events to watch the collection and keep an extrinsic index in sync with the actual links.
I'd be interested to know how many folks would find being able to index collections by properties a compelling future feature.
Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT] |