A
APA
I already have a colleciton class that implements IEnumerable but I also what to be able to
implement this inteface: MyCollectionClass["somestringkey"].
EX:
//MyCollectionClass is s collection of MyObject objects
MyObject mo = MyCollectionClass["somestringkey"];
or
string mypropertryvalue = MyCollectionClass["somestringkey"].SomeProperty
How do I implement the string key indexer in my collection class?
Thx.
implement this inteface: MyCollectionClass["somestringkey"].
EX:
//MyCollectionClass is s collection of MyObject objects
MyObject mo = MyCollectionClass["somestringkey"];
or
string mypropertryvalue = MyCollectionClass["somestringkey"].SomeProperty
How do I implement the string key indexer in my collection class?
Thx.