I have a generic list which contains a class called Parameter.
Parameter contains 2 integers, ParamType and ParamValue.
A generic list is built containing a small number of values List<Parameter> myList
I have created a function which passes in 2 parameters. These
are passed individually but are used to create a new Parameter within
the function. The Parameter is tested against myList, and if it is
found removed.
In order to do this I have used the remove function, the syntax being:
myList.Remove( new Parameter(ParamType, ParamValue));
The
remove isn't working and at present I'm using LINQ to do it. I would
apprecaite it if someone could point out the error with the remove
function so that I can correctly code it without LINQ.
Thanks
John