私は文字列の配列を持っています:
string[] PropertyIds= new string[5];
クラスのA List
( Property
)
List<Property> properties = new List<Property>();
クラスProperty
には次のフィールドがあります:
PropertyId
(string) およびPropertyDesc
(string)
List プロパティにはない PropertyIds 配列の PropertyId のすべての値を見つける必要があります。
例えば
string[] PropertyIds= new string[] { "one", "two", "three" };
List<Property> properties = new List<Property>()
{
new Property("one","This is p1"),
new Property("Five","This is p5"),
new Property("six","This is p6"),
};
次に、結果はtwoとthreeになるはずです。