I have two list of the same type of object (X)
X has this properties:
- Id: int
- Name: string
- Month: string
- ISSPA: string
I want to get the items which has the same value in the properties Month and ISSPA. For example:
List 1
Item 1
{
Id = 1,
Name = "John",
Month = "October"
ISSPA = "1234"
}
Item 2
{
Id = 2,
Name = "Ryan",
Month = "September"
ISSPA = "1234"
}
List 2
Item 1
{
Id = 1,
Name = "Chris",
Month = "September"
ISSPA = "1234"
}
In this case I need to get Item 2 (List1) and Item 1 (List2). I tried a lot of things to get something decent but all failed.