public override bool Match(IInventoryItem inventory) { var lookupValue = Parameter as string; var inventoryValue = inventory.GetPropertyValue(PropertyName); return(lookupValue != null && inventoryValue != null && inventoryValue.ToString().Contains(lookupValue)); }
public override bool Match(IInventoryItem inventory) { return(inventory.GetPropertyValue(PropertyName).ToString() == Parameter as string); }