public override bool ComapreAttributes(ObjectAttribute lRemoteAttribute) { if (lRemoteAttribute.GetType() != typeof(ObjectAttributeBool)) return false; if (lRemoteAttribute.Value != Value) return false; return true; }
public override bool ComapreAttributes(ObjectAttribute lRemoteAttribute) { if (lRemoteAttribute == null) return false; if (lRemoteAttribute.GetType() != typeof(ObjectAttributeString)) return false; if (lRemoteAttribute.Value == null) return false; if (Value == "")//Regex makes this wrong if (lRemoteAttribute.Value != Value) return false; Match m = Regex.Match(lRemoteAttribute.Value, Value); if (m.Success) return true; return false; }