Tom Knowlton
asked on
Find on a List<> of objects
public class StateData
{
public StateData(string tempabbrev, string tempfullstatename)
{
abbrev = tempabbrev;
fullstatename = tempfullstatename;
}
public string abbrev = "";
public string fullstatename = "";
}
I have a collection of states in another list .... if any of those are found in my List<StateData> I want to do something.
Please provide sample C# code.
{
public StateData(string tempabbrev, string tempfullstatename)
{
abbrev = tempabbrev;
fullstatename = tempfullstatename;
}
public string abbrev = "";
public string fullstatename = "";
}
I have a collection of states in another list .... if any of those are found in my List<StateData> I want to do something.
Please provide sample C# code.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window