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