Hi I have a array list if type class "DtContract".
ArrayList listOfContracts_;
foreach (DTContract contract in listOfContracts_)
{
if (contract.Engine != DTIsland.EngineType.AMADEUS && contract.Engine !=DTIsland.EngineType.SABRE)
continue;
}
I want to do it through LINQ.
I want to filter the Contract whose EngineType == AMADEUS && EngineType == SABRE
. Please suggest how can i do it through Linq and get the result in List or in array list.
I am doing this to Optimize the code.
Please Help...