P
Peter
I have a collection of Test Class with the following keys
Class Test
{
public int num1;
public int num2;
}
Key1 = "1"
Key2 = "1"
Key3 = "1"
Key4 = "2"
Key5 = "2"
Key6 = "2"
Key7 = "3"
Key8 = "3"
Key9 = "3"
I want to change num1 to equal 100 if the Key is "2".
How do I get to all objects where key = "2" without iterating through all of
the keys.
Thanks
Peter
Class Test
{
public int num1;
public int num2;
}
Key1 = "1"
Key2 = "1"
Key3 = "1"
Key4 = "2"
Key5 = "2"
Key6 = "2"
Key7 = "3"
Key8 = "3"
Key9 = "3"
I want to change num1 to equal 100 if the Key is "2".
How do I get to all objects where key = "2" without iterating through all of
the keys.
Thanks
Peter