J
John A Grandy
For :
Dictionary<string,MyClass> myClasses;
Is it possible to obtain a reference to object stored internally at the
lowest ordinal in the Dictionary , without using the key ?
This does not work :
KeyValuePair<string,MyClass> kvp =
(KeyValuePair<string,MyClass>)myClasses[0];
MyClass myClass0 = (MyClass)kvp.Value;
Also, this does not work :
KeyValuePair<string,MyClass> kvp =
(KeyValuePair<string,MyClass>)myClasses.Values[0];
MyClass myClass0 = (MyClass)kvp.Value;
If not possible to obtain reference to object stored at lowest ordinal in
Dictionary , is it possible to obtain a reference to *any* object stored in
the dictionary ? i.e. don't care what internal ordinal it's stored at.
Dictionary<string,MyClass> myClasses;
Is it possible to obtain a reference to object stored internally at the
lowest ordinal in the Dictionary , without using the key ?
This does not work :
KeyValuePair<string,MyClass> kvp =
(KeyValuePair<string,MyClass>)myClasses[0];
MyClass myClass0 = (MyClass)kvp.Value;
Also, this does not work :
KeyValuePair<string,MyClass> kvp =
(KeyValuePair<string,MyClass>)myClasses.Values[0];
MyClass myClass0 = (MyClass)kvp.Value;
If not possible to obtain reference to object stored at lowest ordinal in
Dictionary , is it possible to obtain a reference to *any* object stored in
the dictionary ? i.e. don't care what internal ordinal it's stored at.