R
rodchar
hey all,
i have a list of keyvalue pairs i'd like to collect in a generic collection
currently i'm using:
private List<KeyValuePair<string,string>> myCol ... ;
and then to add:
myCol.Add(new KeyValuePair<string,string>(val1,val2));
is this the lightest collection there is? i'm kinda wondering about having
to instance a new kvp on each add.
thanks,
rodchar
i have a list of keyvalue pairs i'd like to collect in a generic collection
currently i'm using:
private List<KeyValuePair<string,string>> myCol ... ;
and then to add:
myCol.Add(new KeyValuePair<string,string>(val1,val2));
is this the lightest collection there is? i'm kinda wondering about having
to instance a new kvp on each add.
thanks,
rodchar