Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public override bool Match(IInventoryItem inventory)
 {
     return(inventory.GetPropertyValue(PropertyName).ToString() == Parameter as string);
 }