我有 2 个列表,如下所述
我如何验证 lstOldItems 中存在的所有sitempath值也存在于lstNewItems中
C# 代码
List<ItemsUnderControlObject> lstNewItems
List<ItemsUnderControlObject> lstOldItems
public class ItemsUnderControlObject
{
public ItemsUnderControlObject();
public bool bButtonEnabled { get; set; }
public short iChkInterval { get; set; }
public int iItemUnderCtrlUniqueID { get; set; }
public DateTime? ItemCreationDateTime { get; set; }
public DateTime? ItemLastAccessDateTime { get; set; }
public DateTime? ItemLastModifiedDateTime { get; set; }
public long lngItemSize { get; set; }
public string sItemBackupLocation { get; set; }
public string sItemcategory { get; set; }
public string sItemCurrentStatus { get; set; }
public DateTime sItemDatabaseCreationDateTime { get; set; }
public string sItemName { get; set; }
public string sItemPath { get; set; }
public string sItemRequestStatus { get; set; }
public string sItemTask { get; set; }
public string sItemValue { get; set; }
public string sItemValueSHA256 { get; set; }
public string sSystemID { get; set; }
}