I have a list declared:
public System.Collecti ons.Generic.Sor tedList<int,
System.Collecti ons.Generic.Lis t<MTGTracer ActiveList
= new SortedList<int, List<MTGTracer> >();
The key is an integer and the value is a list of MTGTracer.
The documentation states:
This property provides the ability to access a specific element in the
collection by using the following syntax: myCollection[key].
This code appears to work fine.
int KeyIndex1 = ActiveList.Inde xOfKey(TraceDat a.ThreadID);
if (ActiveList[KeyIndex1].Count == 1)
{ do somethinthing.
}
How can I access a specific member of the MTGTracer list.
I have tried
ActiveList[KeyIndex1].[2].TicksInCalledR outines
to access the second in the list but the compiler wants an identifier to go
along with the [2].
What is the identifier?
Thanks
Tom
public System.Collecti ons.Generic.Sor tedList<int,
System.Collecti ons.Generic.Lis t<MTGTracer ActiveList
= new SortedList<int, List<MTGTracer> >();
The key is an integer and the value is a list of MTGTracer.
The documentation states:
This property provides the ability to access a specific element in the
collection by using the following syntax: myCollection[key].
This code appears to work fine.
int KeyIndex1 = ActiveList.Inde xOfKey(TraceDat a.ThreadID);
if (ActiveList[KeyIndex1].Count == 1)
{ do somethinthing.
}
How can I access a specific member of the MTGTracer list.
I have tried
ActiveList[KeyIndex1].[2].TicksInCalledR outines
to access the second in the list but the compiler wants an identifier to go
along with the [2].
What is the identifier?
Thanks
Tom
Comment