Say for example I have:
List<string> itemset1 = new List<string>();
List<string> itemset2 = new List<string>();
// Linkedlist itemsetcurrent
Which is declared outside the functions, and must be accessible from all the functions.
Now, I have a code like this:
private void SetList(List<string> list)
{
itemsetcurrent = list
}
And:
private void ShowList()
{
string x = listsetcurrent[0];
}
Basically, I want a link to a list (or other object), which can changed to another set, and will be updated when the list it is linked to changes, but without creating a duplicate list. (I hope this is a good enough explanation. Tell me if it isn't.)
Cheers,